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/routing-controller.yml.twig
2018-11-23 12:29:20 +00:00

16 lines
420 B
Twig

{% if class_name is defined %}
{% for route in routes %}
{% if learning is defined and learning %}
{{ yaml_comment('application.messages.learning.route') }}
{% endif %}
{{ route.name }}:
path: '{{ route.path }}'
defaults:
_controller: '\Drupal\{{ module }}\Controller\{{ class_name }}::{{ route.method }}'
_title: '{{route.title}}'
requirements:
_permission: 'access content'
{% endfor %}
{% endif %}