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

38 lines
1.3 KiB
Twig

{% if fieldable_no_bundle %}
entity.{{ entity_type_id }}.settings:
title: 'Settings'
route_name: entity.{{ entity_type_id }}.settings
base_route: entity.{{ entity_type_id }}.settings
{% endif %}
{# Tabs are not needed when there is no canonical view page. #}
{% if canonical %}
entity.{{ entity_type_id }}.view:
title: 'View'
route_name: entity.{{ entity_type_id }}.canonical
base_route: entity.{{ entity_type_id }}.canonical
entity.{{ entity_type_id }}.edit_form:
title: 'Edit'
route_name: entity.{{ entity_type_id }}.edit_form
base_route: entity.{{ entity_type_id }}.canonical
entity.{{ entity_type_id }}.delete_form:
title: 'Delete'
route_name: entity.{{ entity_type_id }}.delete_form
base_route: entity.{{ entity_type_id }}.canonical
weight: 10
{% endif %}
entity.{{ entity_type_id }}.collection:
title: '{{ entity_type_label|pluralize }}'
route_name: entity.{{ entity_type_id }}.collection
base_route: system.admin_content
weight: 10
{% if bundle %}
entity.{{ entity_type_id }}_type.edit_form:
title: 'Edit'
route_name: entity.{{ entity_type_id }}_type.edit_form
base_route: entity.{{ entity_type_id }}_type.edit_form
entity.{{ entity_type_id }}_type.collection:
title: 'List'
route_name: entity.{{ entity_type_id }}_type.collection
base_route: entity.{{ entity_type_id }}_type.collection
{% endif %}