v1/vendor/chi-teck/drupal-code-generator/templates/content-entity/model.permissions.yml.twig

21 lines
740 B
Twig

{% if bundle %}
administer {{ entity_type_label|lower }} types:
title: 'Administer {{ entity_type_label|lower }} types'
description: 'Maintain the types of {{ entity_type_label|lower }} entity.'
restrict access: true
{% else %}
administer {{ entity_type_label|lower }}:
title: 'Administer {{ entity_type_label|lower }} settings'
restrict access: true
{% endif %}
{% if access_controller %}
delete {{ entity_type_label|lower }}:
title: Delete {{ entity_type_label|lower }}
create {{ entity_type_label|lower }}:
title: Create {{ entity_type_label|lower }}
view {{ entity_type_label|lower }}:
title: View {{ entity_type_label|lower }}
edit {{ entity_type_label|lower }}:
title: Edit {{ entity_type_label|lower }}
{% endif %}