menu_test.links.menu.yml

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/menu_test/menu_test.links.menu.yml
  2. 10 core/modules/system/tests/modules/menu_test/menu_test.links.menu.yml
  3. 11.x core/modules/system/tests/modules/menu_test/menu_test.links.menu.yml
core/modules/system/tests/modules/menu_test/menu_test.links.menu.yml

File

core/modules/system/tests/modules/menu_test/menu_test.links.menu.yml

View source
  1. # The name of the menu changes during the course of the test. Using a $_GET.
  2. menu_test.menu_name_test:
  3. title: 'Test menu_name router item'
  4. route_name: menu_test.menu_name_test
  5. menu_name: original
  6. # This item uses SystemController::systemAdminMenuBlockPage() to list child
  7. # items.
  8. menu_test.menu_callback_description:
  9. title: 'Menu item title'
  10. description: 'Menu item description parent'
  11. route_name: menu_test.callback_description
  12. # This item tests the description key.
  13. menu_test.menu_callback_description.description-plain:
  14. title: 'Menu item with a regular description'
  15. description: 'Menu item description text'
  16. route_name: menu_test.callback_description_plain
  17. parent: menu_test.menu_callback_description
  18. menu_test.menu_no_title_callback:
  19. title: 'A title with @placeholder'
  20. route_name: menu_test.menu_no_title_callback
  21. # Hierarchical tests.
  22. menu_test.hierarchy_parent:
  23. title: 'Parent menu router'
  24. route_name: menu_test.hierarchy_parent
  25. menu_test.hierarchy_parent.child:
  26. title: 'Child menu router'
  27. route_name: menu_test.hierarchy_parent_child
  28. parent: menu_test.hierarchy_parent
  29. menu_test.hierarchy_parent.child2.child:
  30. title: 'Unattached subchild router'
  31. route_name: menu_test.hierarchy_parent_child2
  32. parent: menu_test.hierarchy_parent.child
  33. # Path containing "exotic" characters.
  34. menu_test.exotic_path:
  35. title: '"Exotic" path'
  36. route_name: menu_test.exotic_path
  37. # "Special" ASCII characters. Characters that look like a percent-escaped
  38. # string. Characters from various non-ASCII alphabets.
  39. # cSpell:disable-next-line
  40. route_parameters: { exotic: ' -._~!$''"()*@[]?&+%#,;=:%23%25%26%2B%2F%3Féøïвβ中國書۞' }
  41. # Hidden tests; base parents.
  42. # Same structure as in Menu and Block modules. Since those structures can
  43. # change, we need to simulate our own in here.
  44. menu_test:
  45. title: 'Menu test root'
  46. route_name: menu_test.menu_test
  47. # Hidden tests; one dynamic argument.
  48. menu_test.hidden:
  49. title: 'Hidden test root'
  50. route_name: menu_test.hidden
  51. parent: menu_test
  52. menu_test.hidden.menu:
  53. title: Menus
  54. route_name: menu_test.hidden_menu
  55. parent: menu_test.hidden
  56. # Hidden tests; two dynamic arguments.
  57. menu_test.hidden.block:
  58. title: Blocks
  59. route_name: menu_test.hidden_block
  60. parent: menu_test.hidden
  61. menu_test.menu-title-test.case1:
  62. title: 'Example title - Case 1'
  63. route_name: menu_test.title_test_case1
  64. menu_test.menu-title-test.case2:
  65. title: 'Example title'
  66. route_name: menu_test.title_test_case2
  67. menu_test.menu-title-test.case3:
  68. title: 'Bike sheds full of blue smurfs'
  69. route_name: menu_test.title_test_case3
  70. menu_test.context:
  71. title: ''
  72. route_name: menu_test.context
  73. menu_test.parent:
  74. title: 'Test menu_name parent'
  75. route_name: menu_test.menu_name_test
  76. menu_name: test
  77. menu_test.child:
  78. title: 'Test menu_name child'
  79. route_name: menu_test.menu_name_test
  80. parent: menu_test.parent
  81. menu_test.unsafe:
  82. route_name: menu_test.menu_name_test
  83. deriver: '\Drupal\menu_test\Plugin\Derivative\MenuLinkTestWithUnsafeTitle'
  84. menu_test.access_check:
  85. title: 'Test custom route access check'
  86. route_name: menu_test.router_test_session
  87. menu_name: account

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.