Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions templates/Entity/_content-entity/model.permissions.yml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
title: 'Administer {{ entity_type_label|lower|pluralize }}'
{% endif %}
restrict access: true
access {{ entity_type_label|lower }} overview:
title: 'Access {{ entity_type_label|lower }} overview'
{% if access_controller %}
{{ permissions.view }}:
title: 'View {{ entity_type_label|lower }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ use Drupal\{{ machine_name }}\{{ class }}AccessControlHandler;
{% endif %}
],
],
collection_permission: 'access {{ entity_type_id }} overview',
links: [
'collection' => '/admin/content/{{ entity_type_id_short|u2h }}',
{% if bundle %}
Expand Down
Loading