Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / yml / links.menu.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/yml/links.menu.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/yml/links.menu.twig
new file mode 100644 (file)
index 0000000..c02502c
--- /dev/null
@@ -0,0 +1,34 @@
+# Simple link.
+{{ machine_name }}.node_add:
+  title: Add content
+  description: Add new content.
+  menu_name: main
+  route_name: node.add_page
+  weight: 10
+
+# Child link.
+{{ machine_name }}.node_add_article:
+  title: Add article
+  menu_name: main
+  parent: {{ machine_name }}.node_add
+  route_name: node.add
+  route_parameters:
+    node_type: article
+  weight: 20
+
+# Dynamic link.
+{{ machine_name }}.user:
+  menu_name: main
+  class: Drupal\user\Plugin\Menu\LoginLogoutMenuLink
+  weight: 30
+
+# External link.
+{{ machine_name }}.drupal.org:
+  title: Drupal.org
+  description: Drupal is an open source platform for building amazing digital experiences.
+  url: https://www.drupal.org
+  menu_name: main
+  weight: 40
+  options:
+    attributes:
+      target: _blank