Version 1
[yaffs-website] / vendor / drupal / console / templates / module / routing-controller.yml.twig
diff --git a/vendor/drupal/console/templates/module/routing-controller.yml.twig b/vendor/drupal/console/templates/module/routing-controller.yml.twig
new file mode 100644 (file)
index 0000000..a8e8f60
--- /dev/null
@@ -0,0 +1,15 @@
+{% 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 %}