# This file links a menu link with route_name.
#
# 'title' is the only required key.
# 'description' is shown either as a tooltip on the item or as the description
# of the option on the page in the admin UI.
# 'weight' is used to order the items. (Higher weights get placed towards the
# end of the menu among items on the same level.)
# 'route_name' is used to associate menu links to the corresponding route.
# 'parent' is used to put items into the menu hierarchy by referring to the
# parent menu link name.
#
examples.menu_example:
  title: 'Menu Example'
  description: 'Simplest possible menu type, and the parent menu entry for others'
  expanded: 1
  route_name: examples.menu_example

examples.menu_example.alternate_menu:
  title: 'Menu Example: Menu in alternate menu'
  # If menu_name is omitted, the "Tools" menu will be used.
  menu_name: 'main'
  route_name: examples.menu_example.alternate_menu

examples.menu_example.restricted:
  title: 'Restricted Example'
  parent: examples.menu_example
  expanded: 1
  route_name: examples.menu_example.restricted
  weight: 10

examples.menu_example.restricted_controlled:
  title: 'Restricted Menu Item'
  parent: examples.menu_example.restricted
  route_name: examples.menu_example.restricted_controlled
  weight: 10

examples.menu_example.custom_access:
  title: 'Custom Access Example'
  parent: examples.menu_example
  expanded: 1
  route_name: examples.menu_example.custom_access
  weight: -5

examples.menu_example.custom_access_page:
  title: 'Custom Access Menu Item'
  parent: examples.menu_example.custom_access
  route_name: examples.menu_example.custom_access_page

examples.menu_example.route_only:
  title: 'Route only example'
  parent: examples.menu_example
  route_name: examples.menu_example.route_only
  weight: 20

examples.menu_example.tabs:
  title: 'Tabs'
  description: 'Shows how to create primary and secondary tabs'
  parent: examples.menu_example
  route_name: examples.menu_example.tabs
  weight: 30

examples.menu_example.use_url_arguments:
  title: 'URL Arguments'
  description: 'The page callback can use the arguments provided after the path used as key'
  parent: examples.menu_example
  route_name: examples.menu_example.use_url_arguments
  weight: 40

examples.menu_example.title_callbacks:
  title: 'Dynamic title'
  description: 'The title of this menu item is dynamically generated'
  parent: examples.menu_example
  route_name: examples.menu_example.title_callbacks
  weight: 50

examples.menu_example.placeholder_argument:
  title: Placeholder Arguments
  description: ''
  parent: 'examples.menu_example'
  route_name: examples.menu_example.placeholder_argument
  weight: 60

example.menu_example.path_override:
  title: Path Override
  description: ''
  parent: 'examples.menu_example'
  route_name: example.menu_example.path_override
  weight: 70
