This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/drupal/console/templates/module/links.menu-entity-content.yml.twig

19 lines
669 B
Twig
Raw Normal View History

2018-11-23 12:29:20 +00:00
{# Initial new line ensures that the new definitions starts on a new line #}
# {{ label }} menu items definition
entity.{{ entity_name }}.collection:
title: '{{ label }} list'
route_name: entity.{{ entity_name }}.collection
description: 'List {{ label }} entities'
parent: system.admin_structure
weight: 100
{# Note: a content entity with bundles will have the settings configured on the bundle (config) entity. #}
{% if not bundle_entity_type %}
{{ entity_name }}.admin.structure.settings:
title: '{{ label }} settings'
description: 'Configure {{ label }} entities'
route_name: {{ entity_name }}.settings
parent: system.admin_structure
{% endif %}