16 lines
420 B
Twig
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 %}
|