menu_test.links.menu.yml

Same filename in other branches
  1. 9 core/modules/system/tests/modules/menu_test/menu_test.links.menu.yml
  2. 8.9.x core/modules/system/tests/modules/menu_test/menu_test.links.menu.yml
  3. 10 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.parent_test:
  19. title: 'Menu Parent'
  20. description: 'Menu item description parent'
  21. route_name: menu_test.parent_test
  22. parent: system.admin
  23. menu_test.parent_test.child1_test:
  24. title: 'Menu child1'
  25. description: 'Menu child1: uses SystemController::overview'
  26. route_name: menu_test.child1_test
  27. parent: menu_test.parent_test
  28. menu_test.parent_test.child2_test:
  29. title: 'Menu child2'
  30. description: 'Menu item description child2'
  31. route_name: menu_test.child2_test
  32. parent: menu_test.parent_test
  33. menu_test.parent_test.child3_test:
  34. title: 'Menu child3'
  35. description: 'Menu item description child3'
  36. route_name: menu_test.child3_test_block
  37. parent: menu_test.parent_test
  38. menu_test.parent_test.child4_test:
  39. title: 'Menu child4'
  40. description: 'Menu item description child4'
  41. route_name: menu_test.child4_test
  42. parent: menu_test.parent_test
  43. menu_test.parent_test.child4_test_overview:
  44. title: 'Menu child4 overview'
  45. description: 'Menu item description child4 overview'
  46. route_name: menu_test.child4_test_overview
  47. parent: menu_test.parent_test
  48. menu_test.parent_test.child_test.grand_child1_test:
  49. title: 'Menu grand child1'
  50. description: 'Menu grand child1: direct parent uses SystemController::overview'
  51. route_name: menu_test.grand_child1_test
  52. parent: menu_test.parent_test.child1_test
  53. menu_test.parent_test.child_test.grand_child2_test:
  54. title: 'Menu grand child2'
  55. description: 'Menu item description grand child2'
  56. route_name: menu_test.grand_child2_test
  57. parent: menu_test.parent_test.child2_test
  58. menu_test.parent_test.child_test.grand_child3_test:
  59. title: 'Menu grand child3'
  60. description: 'Menu item description grand child3'
  61. route_name: menu_test.grand_child3_test
  62. parent: menu_test.parent_test.child2_test
  63. menu_test.parent_test.child_test.grand_child4_test:
  64. title: 'Menu grand child4'
  65. description: 'Menu item description grand child4'
  66. route_name: menu_test.grand_child4_test
  67. parent: menu_test.parent_test.child4_test
  68. menu_test.parent_test.child_test.great_grand_child1_test:
  69. title: 'Menu great grand child1'
  70. description: 'Menu great grand child1: grand parent uses SystemController::overview'
  71. route_name: menu_test.great_grand_child1_test
  72. parent: menu_test.parent_test.child_test.grand_child1_test
  73. menu_test.menu_parent_test_param:
  74. title: 'Menu Parent Param'
  75. description: 'Menu item description parent'
  76. route_name: menu_test.parent_test_param
  77. parent: system.admin
  78. route_parameters:
  79. param: 'param-in-menu'
  80. menu_test.menu_parent_test.child_test_param:
  81. title: 'Menu Child Param'
  82. description: 'Menu item description child'
  83. route_name: menu_test.child_test_param
  84. parent: menu_test.menu_parent_test_param
  85. route_parameters:
  86. param: 'param-in-menu'
  87. menu_test.menu_parent_test_param_default:
  88. title: 'Menu Parent Param Default'
  89. description: 'Menu item description parent'
  90. route_name: menu_test.parent_test_param
  91. parent: system.admin
  92. route_parameters:
  93. param: 'child_uses_default'
  94. menu_test.menu_parent_test.child_test_param_default:
  95. title: 'Menu Child Param Default'
  96. description: 'Menu item description child'
  97. route_name: menu_test.child_test_param
  98. parent: menu_test.menu_parent_test_param_default
  99. menu_test.menu_parent_test_param_default_explicit:
  100. title: 'Menu Parent Param Default Explicit'
  101. description: 'Menu item description parent'
  102. route_name: menu_test.parent_test_param_explicit
  103. parent: system.admin
  104. route_parameters:
  105. param: 'my_default'
  106. menu_test.menu_parent_test.child_test_param_default_explicit:
  107. title: 'Menu Child Param Default Explicit'
  108. description: 'Menu item description child'
  109. route_name: menu_test.child_test_param_explicit
  110. parent: menu_test.menu_parent_test_param_default_explicit
  111. route_parameters:
  112. param: 'my_default'
  113. menu_test.menu_no_title_callback:
  114. title: 'A title with @placeholder'
  115. route_name: menu_test.menu_no_title_callback
  116. # Hierarchical tests.
  117. menu_test.hierarchy_parent:
  118. title: 'Parent menu router'
  119. route_name: menu_test.hierarchy_parent
  120. menu_test.hierarchy_parent.child:
  121. title: 'Child menu router'
  122. route_name: menu_test.hierarchy_parent_child
  123. parent: menu_test.hierarchy_parent
  124. menu_test.hierarchy_parent.child2.child:
  125. title: 'Unattached subchild router'
  126. route_name: menu_test.hierarchy_parent_child2
  127. parent: menu_test.hierarchy_parent.child
  128. # Path containing "exotic" characters.
  129. menu_test.exotic_path:
  130. title: '"Exotic" path'
  131. route_name: menu_test.exotic_path
  132. # "Special" ASCII characters. Characters that look like a percent-escaped
  133. # string. Characters from various non-ASCII alphabets.
  134. # cSpell:disable-next-line
  135. route_parameters: { exotic: ' -._~!$''"()*@[]?&+%#,;=:%23%25%26%2B%2F%3Féøïвβ中國書۞' }
  136. # Hidden tests; base parents.
  137. # Same structure as in Menu and Block modules. Since those structures can
  138. # change, we need to simulate our own in here.
  139. menu_test:
  140. title: 'Menu test root'
  141. route_name: menu_test.menu_test
  142. # Hidden tests; one dynamic argument.
  143. menu_test.hidden:
  144. title: 'Hidden test root'
  145. route_name: menu_test.hidden
  146. parent: menu_test
  147. menu_test.hidden.menu:
  148. title: Menus
  149. route_name: menu_test.hidden_menu
  150. parent: menu_test.hidden
  151. # Hidden tests; two dynamic arguments.
  152. menu_test.hidden.block:
  153. title: Blocks
  154. route_name: menu_test.hidden_block
  155. parent: menu_test.hidden
  156. menu_test.menu-title-test.case1:
  157. title: 'Example title - Case 1'
  158. route_name: menu_test.title_test_case1
  159. menu_test.menu-title-test.case2:
  160. title: 'Example title'
  161. route_name: menu_test.title_test_case2
  162. menu_test.menu-title-test.case3:
  163. title: 'Bike sheds full of blue smurfs'
  164. route_name: menu_test.title_test_case3
  165. menu_test.context:
  166. title: ''
  167. route_name: menu_test.context
  168. menu_test.parent:
  169. title: 'Test menu_name parent'
  170. route_name: menu_test.menu_name_test
  171. menu_name: test
  172. menu_test.child:
  173. title: 'Test menu_name child'
  174. route_name: menu_test.menu_name_test
  175. parent: menu_test.parent
  176. menu_test.unsafe:
  177. route_name: menu_test.menu_name_test
  178. deriver: '\Drupal\menu_test\Plugin\Derivative\MenuLinkTestWithUnsafeTitle'
  179. menu_test.access_check:
  180. title: 'Test custom route access check'
  181. route_name: menu_test.router_test_session
  182. menu_name: account
  183. menu_test.admin_description:
  184. title: 'Test custom admin block without description'
  185. parent: system.admin_config_content
  186. route_name: menu_test.menu_name_test

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