You are here

menu_test.routing.yml in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/system/tests/modules/menu_test/menu_test.routing.yml
core/modules/system/tests/modules/menu_test/menu_test.routing.yml

File

core/modules/system/tests/modules/menu_test/menu_test.routing.yml
View source
  1. menu_test.menu_name_test:
  2. path: '/menu_name_test'
  3. defaults:
  4. _title: 'Test menu_name router item'
  5. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  6. requirements:
  7. _access: 'TRUE'
  8. menu_test.menu_callback_title:
  9. path: '/menu_callback_title'
  10. defaults:
  11. _title: 'Menu Callback Title'
  12. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  13. requirements:
  14. _access: 'TRUE'
  15. menu_test.login_callback:
  16. path: '/menu_login_callback'
  17. defaults:
  18. _controller: '\Drupal\menu_test\TestControllers::testLogin'
  19. requirements:
  20. _access: 'TRUE'
  21. options:
  22. _maintenance_access: TRUE
  23. menu_test.callback_description:
  24. path: '/menu_callback_description'
  25. defaults:
  26. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  27. requirements:
  28. _access: 'TRUE'
  29. menu_test.callback_description_plain:
  30. path: '/menu_callback_description/description-plain'
  31. defaults:
  32. _title: 'Menu item with a regular description'
  33. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  34. requirements:
  35. _access: 'TRUE'
  36. menu_test.menu_no_title_callback:
  37. path: '/menu_no_title_callback'
  38. defaults:
  39. _title: 'A title with @placeholder'
  40. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  41. requirements:
  42. _access: 'TRUE'
  43. menu_test.router_test1:
  44. path: '/foo/{bar}'
  45. defaults:
  46. _controller: '\Drupal\menu_test\TestControllers::test1'
  47. requirements:
  48. _access: 'TRUE'
  49. menu_test.router_test2:
  50. path: '/foo/{bar}/b'
  51. defaults:
  52. _controller: '\Drupal\menu_test\TestControllers::test2'
  53. requirements:
  54. _access: 'TRUE'
  55. menu_test.router_test3:
  56. path: '/foo/{bar}/c'
  57. defaults:
  58. _controller: '\Drupal\menu_test\TestControllers::test2'
  59. requirements:
  60. _access: 'FALSE'
  61. menu_test.router_test4:
  62. path: '/foo/{bar}/d'
  63. defaults:
  64. _controller: '\Drupal\menu_test\TestControllers::test2'
  65. requirements:
  66. _access: 'TRUE'
  67. menu_test.router_test_session:
  68. path: '/menu_test_access_check_session'
  69. defaults:
  70. _controller: '\Drupal\menu_test\TestControllers::testSession'
  71. options:
  72. no_cache: TRUE
  73. requirements:
  74. _menu_test_session_access: 'TRUE'
  75. menu_test.local_action1:
  76. path: '/menu-test-local-action'
  77. defaults:
  78. _controller: '\Drupal\menu_test\TestControllers::test1'
  79. requirements:
  80. _access: 'TRUE'
  81. menu_test.local_action2:
  82. path: '/menu-test-local-action/hook_menu'
  83. defaults:
  84. _controller: '\Drupal\menu_test\TestControllers::test2'
  85. requirements:
  86. _access: 'TRUE'
  87. menu_test.local_action3:
  88. path: '/menu-test-local-action/routing'
  89. defaults:
  90. _controller: '\Drupal\menu_test\TestControllers::test2'
  91. requirements:
  92. _access: 'TRUE'
  93. menu_test.local_action4:
  94. path: '/menu-test-local-action/dynamic-title'
  95. defaults:
  96. _controller: '\Drupal\menu_test\TestControllers::test2'
  97. requirements:
  98. _access: 'TRUE'
  99. menu_test.local_action5:
  100. path: '/menu-test-local-action/routing2'
  101. defaults:
  102. _controller: '\Drupal\menu_test\TestControllers::test2'
  103. requirements:
  104. _access: 'TRUE'
  105. menu_test.contextual_test:
  106. path: '/menu-test-contextual/default'
  107. defaults:
  108. _controller: '\Drupal\menu_test\TestControllers::testContextual'
  109. requirements:
  110. _access: 'TRUE'
  111. menu_test.contextual_hidden_manage:
  112. path: '/menu-test-contextual/{bar}'
  113. defaults:
  114. _controller: '\Drupal\menu_test\TestControllers::test1'
  115. requirements:
  116. _access: 'TRUE'
  117. menu_test.contextual_hidden_manage_edit:
  118. path: '/menu-test-contextual/{bar}/edit'
  119. defaults:
  120. _controller: '\Drupal\menu_test\TestControllers::test2'
  121. requirements:
  122. _access: 'TRUE'
  123. menu_test.local_task_test_tasks:
  124. path: '/menu-local-task-test/tasks'
  125. defaults:
  126. _controller: '\Drupal\menu_test\TestControllers::test1'
  127. requirements:
  128. _access: 'TRUE'
  129. menu_test.tasks_default:
  130. path: '/menu-local-task-test/default'
  131. defaults:
  132. _controller: '\Drupal\menu_test\TestControllers::test1'
  133. requirements:
  134. _access: 'TRUE'
  135. menu_test.local_task_test_tasks_tasks:
  136. path: '/menu-local-task-test/tasks/tasks'
  137. defaults:
  138. _controller: '\Drupal\menu_test\TestControllers::test1'
  139. requirements:
  140. _access: 'TRUE'
  141. menu_test.local_task_test_tasks_view:
  142. path: '/menu-local-task-test/tasks/view'
  143. defaults:
  144. _controller: '\Drupal\menu_test\TestControllers::test1'
  145. requirements:
  146. _access: 'TRUE'
  147. menu_test.local_task_test_tasks_edit:
  148. path: '/menu-local-task-test/tasks/edit'
  149. defaults:
  150. _controller: '\Drupal\menu_test\TestControllers::test1'
  151. requirements:
  152. _access: 'TRUE'
  153. menu_test.local_task_test_tasks_settings:
  154. path: '/menu-local-task-test/tasks/settings'
  155. defaults:
  156. _controller: '\Drupal\menu_test\TestControllers::test1'
  157. requirements:
  158. _access: 'TRUE'
  159. menu_test.local_task_test_tasks_settings_dynamic:
  160. path: '/menu-local-task-test/tasks/settings-dynamic'
  161. defaults:
  162. _controller: '\Drupal\menu_test\TestControllers::test1'
  163. requirements:
  164. _access: 'TRUE'
  165. menu_test.local_task_test_tasks_settings_sub1:
  166. path: '/menu-local-task-test/tasks/settings/sub1'
  167. defaults:
  168. _controller: '\Drupal\menu_test\TestControllers::test1'
  169. requirements:
  170. _access: 'TRUE'
  171. menu_test.local_task_test_tasks_settings_sub2:
  172. path: '/menu-local-task-test/tasks/settings/sub2'
  173. defaults:
  174. _controller: '\Drupal\menu_test\TestControllers::test1'
  175. requirements:
  176. _access: 'TRUE'
  177. menu_test.local_task_test_tasks_settings_sub3:
  178. path: '/menu-local-task-test/tasks/settings/sub3'
  179. defaults:
  180. _controller: '\Drupal\menu_test\TestControllers::test1'
  181. requirements:
  182. _access: 'TRUE'
  183. menu_test.local_task_test_tasks_settings_derived:
  184. path: '/menu-local-task-test/tasks/settings/{placeholder}'
  185. defaults:
  186. _controller: '\Drupal\menu_test\TestControllers::testDerived'
  187. requirements:
  188. _access: 'TRUE'
  189. menu_test.local_task_test_placeholder_sub1:
  190. path: '/menu-local-task-test-dynamic/{placeholder}/sub1'
  191. defaults:
  192. _controller: '\Drupal\menu_test\TestControllers::test1'
  193. requirements:
  194. _access: 'TRUE'
  195. menu_test.local_task_test_placeholder_sub2:
  196. path: '/menu-local-task-test-dynamic/{placeholder}/sub2'
  197. defaults:
  198. _controller: '\Drupal\menu_test\TestControllers::test1'
  199. requirements:
  200. _access: 'TRUE'
  201. menu_test.local_task_test_upcasting_sub1:
  202. path: '/menu-local-task-test-upcasting/{entity_test}/sub1'
  203. defaults:
  204. _controller: '\Drupal\menu_test\TestControllers::test1'
  205. requirements:
  206. _access: 'TRUE'
  207. menu_test.local_task_test_upcasting_sub2:
  208. path: '/menu-local-task-test-upcasting/{entity_test}/sub2'
  209. defaults:
  210. _controller: '\Drupal\menu_test\TestControllers::test1'
  211. requirements:
  212. _access: 'TRUE'
  213. menu_test.optional_placeholder:
  214. path: '/menu-test/optional/{placeholder}'
  215. defaults:
  216. _controller: '\Drupal\menu_test\TestControllers::testDefaults'
  217. placeholder: NULL
  218. requirements:
  219. _access: 'TRUE'
  220. menu_test.menu_test_maintain:
  221. path: '/menu_test_maintain/{test}'
  222. defaults:
  223. _title: 'Menu maintain test'
  224. _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
  225. requirements:
  226. _access: 'TRUE'
  227. menu_test.hierarchy_parent:
  228. path: '/menu-test/hierarchy/parent'
  229. defaults:
  230. _title: 'Parent menu router'
  231. _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
  232. requirements:
  233. _access: 'TRUE'
  234. menu_test.hierarchy_parent_child:
  235. path: '/menu-test/hierarchy/parent/child'
  236. defaults:
  237. _title: 'Child menu router'
  238. _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
  239. requirements:
  240. _access: 'TRUE'
  241. menu_test.hierarchy_parent_child2:
  242. path: '/menu-test/hierarchy/parent/child2/child'
  243. defaults:
  244. _title: 'Unattached subchild router'
  245. _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
  246. requirements:
  247. _access: 'TRUE'
  248. menu_test.menu_test:
  249. path: '/menu-test'
  250. defaults:
  251. _title: 'Menu test root'
  252. _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
  253. requirements:
  254. _access: 'TRUE'
  255. menu_test.hidden:
  256. path: '/menu-test/hidden'
  257. defaults:
  258. _title: 'Hidden test root'
  259. _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
  260. requirements:
  261. _access: 'TRUE'
  262. menu_test.hidden_menu:
  263. path: '/menu-test/hidden/menu'
  264. defaults:
  265. _title: 'Menus'
  266. _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
  267. requirements:
  268. _access: 'TRUE'
  269. menu_test.hidden_block:
  270. path: '/menu-test/hidden/block'
  271. defaults:
  272. _title: 'Blocks'
  273. _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
  274. requirements:
  275. _access: 'TRUE'
  276. menu_test.hidden_block_add:
  277. path: '/menu-test/hidden/block/add'
  278. defaults:
  279. _title: 'Add block'
  280. _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
  281. requirements:
  282. _access: 'TRUE'
  283. menu_test.hidden_block_configure:
  284. path: '/menu-test/hidden/block/manage/{foo}/{bar}'
  285. defaults:
  286. _title: 'Configure block'
  287. _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
  288. requirements:
  289. _access: 'TRUE'
  290. menu_test.hidden_block_delete:
  291. path: '/menu-test/hidden/block/manage/{foo}/{bar}/delete'
  292. defaults:
  293. _title: 'Configure block'
  294. _controller: '\Drupal\test_page_test\Controller\TestPageTestController::testPage'
  295. requirements:
  296. _access: 'TRUE'
  297. menu_test.theme_callback:
  298. path: '/menu-test/theme-callback/{inherited}'
  299. defaults:
  300. _title: 'Page that displays different themes'
  301. _controller: '\Drupal\menu_test\Controller\MenuTestController::themePage'
  302. requirements:
  303. _access: 'TRUE'
  304. menu_test.no_theme_callback:
  305. path: '/menu-test/no-theme-callback'
  306. defaults:
  307. _title: 'Page that displays different themes without using a theme negotiation.'
  308. _controller: '\Drupal\menu_test\Controller\MenuTestController::themePage'
  309. inherited: false
  310. requirements:
  311. _access: 'TRUE'
  312. menu_test.exotic_path:
  313. # "Special" ASCII characters, characters that look like a percent-escaped
  314. # string, and characters from various non-ASCII alphabets.
  315. # @todo Find a way to use the correct path.
  316. #path: "/menu-test/ -._~!$'\"()*@[]?&+%#,;=:%23%25%26%2B%2F%3Féøïвβ中國書۞"
  317. path: '/menu-test/{exotic}'
  318. defaults:
  319. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  320. requirements:
  321. exotic: '.+'
  322. _access: 'TRUE'
  323. menu_test.theme_callback_inheritance:
  324. path: '/menu-test/theme-callback/{inherited}/inheritance'
  325. defaults:
  326. _title: 'Page that tests theme negotiation inheritance.'
  327. _controller: '\Drupal\menu_test\Controller\MenuTestController::themePage'
  328. requirements:
  329. _access: 'TRUE'
  330. menu_test.title_test_case1:
  331. path: '/menu-title-test/case1'
  332. defaults:
  333. _title: 'Example title - Case 1'
  334. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  335. requirements:
  336. _access: 'TRUE'
  337. menu_test.title_test_case2:
  338. path: '/menu-title-test/case2'
  339. defaults:
  340. _title: 'Example title'
  341. _title_callback: '\Drupal\menu_test\Controller\MenuTestController::titleCallback'
  342. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  343. requirements:
  344. _access: 'TRUE'
  345. menu_test.title_test_case3:
  346. path: '/menu-title-test/case3'
  347. defaults:
  348. _title: 'Bike sheds full of blue smurfs' # this should be ignored
  349. _title_callback: '\Drupal\menu_test\Controller\MenuTestController::titleCallback'
  350. _title_arguments:
  351. title: 'Example title'
  352. case_number: '3'
  353. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  354. requirements:
  355. _access: 'TRUE'
  356. menu_test.context:
  357. path: '/menu-test/context'
  358. defaults:
  359. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  360. requirements:
  361. _access: 'TRUE'
  362. menu_test.custom:
  363. path: '/menu-test/custom'
  364. defaults:
  365. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  366. requirements:
  367. _access: 'TRUE'
  368. menu_test.breadcrumb1:
  369. path: '/menu-test/breadcrumb1'
  370. defaults:
  371. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  372. _title: '<script>alert(12);</script>'
  373. requirements:
  374. _access: 'TRUE'
  375. menu_test.breadcrumb2:
  376. path: '/menu-test/breadcrumb1/breadcrumb2'
  377. defaults:
  378. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  379. _title_callback: '\Drupal\menu_test\Controller\MenuTestController::breadcrumbTitleCallback'
  380. requirements:
  381. _access: 'TRUE'
  382. menu_test.breadcrumb3:
  383. path: '/menu-test/breadcrumb1/breadcrumb2/breadcrumb3'
  384. defaults:
  385. _controller: '\Drupal\menu_test\Controller\MenuTestController::menuTestCallback'
  386. _title: 'Normal title'
  387. requirements:
  388. _access: 'TRUE'