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/chi-teck/drupal-code-generator/templates/d8/yml/links.menu.twig
2018-11-23 12:29:20 +00:00

35 lines
759 B
Twig

# 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