You are here

menu_test.links.menu.yml in Zircon Profile 8.0

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. route_parameters: { exotic: ' -._~!$''"()*@[]?&+%#,;=:%23%25%26%2B%2F%3Féøïвβ中國書۞' }
  40. # Hidden tests; base parents.
  41. # Same structure as in Menu and Block modules. Since those structures can
  42. # change, we need to simulate our own in here.
  43. menu_test:
  44. title: 'Menu test root'
  45. route_name: menu_test.menu_test
  46. # Hidden tests; one dynamic argument.
  47. menu_test.hidden:
  48. title: 'Hidden test root'
  49. route_name: menu_test.hidden
  50. parent: menu_test
  51. menu_test.hidden.menu:
  52. title: Menus
  53. route_name: menu_test.hidden_menu
  54. parent: menu_test.hidden
  55. # Hidden tests; two dynamic arguments.
  56. menu_test.hidden.block:
  57. title: Blocks
  58. route_name: menu_test.hidden_block
  59. parent: menu_test.hidden
  60. menu_test.menu-title-test.case1:
  61. title: 'Example title - Case 1'
  62. route_name: menu_test.title_test_case1
  63. menu_test.menu-title-test.case2:
  64. title: 'Example title'
  65. route_name: menu_test.title_test_case2
  66. menu_test.menu-title-test.case3:
  67. title: 'Bike sheds full of blue smurfs'
  68. route_name: menu_test.title_test_case3
  69. menu_test.context:
  70. title: ''
  71. route_name: menu_test.context
  72. menu_test.parent:
  73. title: 'Test menu_name parent'
  74. route_name: menu_test.menu_name_test
  75. menu_name: test
  76. menu_test.child:
  77. title: 'Test menu_name child'
  78. route_name: menu_test.menu_name_test
  79. parent: menu_test.parent
  80. menu_test.unsafe:
  81. route_name: menu_test.menu_name_test
  82. deriver: '\Drupal\menu_test\Plugin\Derivative\MenuLinkTestWithUnsafeTitle'
  83. menu_test.access_check:
  84. title: 'Test custom route access check'
  85. route_name: menu_test.router_test_session
  86. menu_name: account