PHPackages                             wieni/wmprotected\_vocabulary - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wieni/wmprotected\_vocabulary

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

wieni/wmprotected\_vocabulary
=============================

Adds the possibility to protect taxonomy terms from being deleted when they are being referenced in certain fields.

1.3.0(3mo ago)04.6k1[1 issues](https://github.com/wieni/wmprotected_vocabulary/issues)MITPHPPHP &gt;=7.1.0

Since Jan 11Pushed 3mo ago6 watchersCompare

[ Source](https://github.com/wieni/wmprotected_vocabulary)[ Packagist](https://packagist.org/packages/wieni/wmprotected_vocabulary)[ RSS](/packages/wieni-wmprotected-vocabulary/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (8)Used By (0)

wmprotected\_vocabulary
=======================

[](#wmprotected_vocabulary)

[![Latest Stable Version](https://camo.githubusercontent.com/f8e1853b12e900e928636748712747b93914d2aeedd3a73ec13dc1a4bf7c04c5/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d70726f7465637465645f766f636162756c6172792f762f737461626c65)](https://packagist.org/packages/wieni/wmprotected_vocabulary)[![Total Downloads](https://camo.githubusercontent.com/3c588eeafa1631cbb30596446e18dead3e219f9b6bd042c003461b6c32bae52c/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d70726f7465637465645f766f636162756c6172792f646f776e6c6f616473)](https://packagist.org/packages/wieni/wmprotected_vocabulary)[![License](https://camo.githubusercontent.com/d57cf41811f9fd44bd3367497ee437dcc9d41569f8341297ea6e48f049e1692a/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d70726f7465637465645f766f636162756c6172792f6c6963656e7365)](https://packagist.org/packages/wieni/wmprotected_vocabulary)

> Adds the possibility to protect taxonomy terms from being deleted when they are being referenced in certain fields.

Why?
----

[](#why)

- Deleting a taxonomy term when it is still being referenced on another entity can do a lot of damage if the underlying code doesn't handle this situation.
- This could be fixed by doing null checks in your code, but sometimes it makes more sense to just prevent the user from deleting those terms.

Installation
------------

[](#installation)

This package requires PHP 7.1 and Drupal 8 or higher. It can be installed using Composer:

```
 composer require wieni/wmprotected_vocabulary
```

How does it work?
-----------------

[](#how-does-it-work)

When trying to delete a protected taxonomy term with references, a message is shown and the confirmation button will be disabled.

### Configuration

[](#configuration)

The functionality can be enabled on a per-vocabulary level by checking the *Protect* checkbox on the vocabulary edit page. The *Protect fields*option can be used to configure which fields should be used when counting the references of a taxonomy term.

Changelog
---------

[](#changelog)

All notable changes to this project will be documented in the [CHANGELOG](CHANGELOG.md) file.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

Distributed under the MIT License. See the [LICENSE](LICENSE.md) file for more information.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance79

Regular maintenance activity

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 65% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~642 days

Total

5

Last Release

111d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.0.0

1.1.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/734199ae17f8da336fef9ba81f7c37cda09b0f9a952f551235c32ecfad68488b?d=identicon)[Wieni](/maintainers/Wieni)

---

Top Contributors

[![DieterHolvoet](https://avatars.githubusercontent.com/u/3606531?v=4)](https://github.com/DieterHolvoet "DieterHolvoet (13 commits)")[![akasake](https://avatars.githubusercontent.com/u/32063989?v=4)](https://github.com/akasake "akasake (6 commits)")[![ponkiwonki](https://avatars.githubusercontent.com/u/106490855?v=4)](https://github.com/ponkiwonki "ponkiwonki (1 commits)")

---

Tags

drupal-8drupal-moduledrupal8-module

### Embed Badge

![Health badge](/badges/wieni-wmprotected-vocabulary/health.svg)

```
[![Health](https://phpackages.com/badges/wieni-wmprotected-vocabulary/health.svg)](https://phpackages.com/packages/wieni-wmprotected-vocabulary)
```

###  Alternatives

[farmos/farmos

A web-based farm record keeping application.

1.2k6.7k1](/packages/farmos-farmos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
