Version 1
[yaffs-website] / vendor / drupal / console / templates / module / links.menu-entity-content.yml.twig
diff --git a/vendor/drupal/console/templates/module/links.menu-entity-content.yml.twig b/vendor/drupal/console/templates/module/links.menu-entity-content.yml.twig
new file mode 100644 (file)
index 0000000..6a9403f
--- /dev/null
@@ -0,0 +1,18 @@
+{# 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 %}