3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Use the contrib entity access and permission_provider handlers for the tag_type config entity.

This commit is contained in:
paul121 2021-06-04 17:02:01 -07:00 committed by Michael Stenta
parent 95d020ea18
commit 835c8602c1
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,3 @@
farm_id_tag:
default_permissions:
- view tag_type

View file

@ -11,8 +11,10 @@ use Drupal\Core\Config\Entity\ConfigEntityBase;
* id = "tag_type",
* label = @Translation("ID tag type"),
* label_collection = @Translation("ID tag types"),
* handlers = { },
* admin_permission = "administer site configuration",
* handlers = {
* "access" = "\Drupal\entity\EntityAccessControlHandler",
* "permission_provider" = "\Drupal\entity\EntityPermissionProvider",
* },
* entity_keys = {
* "id" = "id",
* "label" = "label",