定制 wieni/wmprotected_vocabulary 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wieni/wmprotected_vocabulary

最新稳定版本:1.2.0

Composer 安装命令:

composer require wieni/wmprotected_vocabulary

包简介

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

README 文档

README

Latest Stable Version Total Downloads License

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:

 composer require wieni/wmprotected_vocabulary

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 security@wieni.be instead of using the issue tracker.

License

Distributed under the MIT License. See the LICENSE file for more information.

统计信息

  • 总下载量: 4.48k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-11