Download the PHP package wieni/wmprotected_vocabulary without Composer
On this page you can find all versions of the php package wieni/wmprotected_vocabulary. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wieni/wmprotected_vocabulary
More information about wieni/wmprotected_vocabulary
Files in wieni/wmprotected_vocabulary
Package wmprotected_vocabulary
Short Description Adds the possibility to protect taxonomy terms from being deleted when they are being referenced in certain fields.
License MIT
Informations about the package wmprotected_vocabulary
wmprotected_vocabulary
Adds the possibility to protect taxonomy terms from being deleted when they are being referenced in certain fields.
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
This package requires PHP 7.1 and Drupal 8 or higher. It can be installed using Composer:
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
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
All notable changes to this project will be documented in the CHANGELOG file.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
License
Distributed under the MIT License. See the LICENSE file for more information.