You are here

router_test.routing.yml in Drupal 8

core/modules/system/tests/modules/router_test_directory/router_test.routing.yml

File

core/modules/system/tests/modules/router_test_directory/router_test.routing.yml
View source
  1. router_test.1:
  2. path: '/router_test/test1'
  3. defaults:
  4. _controller: '\Drupal\router_test\TestControllers::test1'
  5. requirements:
  6. _access: 'TRUE'
  7. router_test.2:
  8. path: '/router_test/test2'
  9. defaults:
  10. _controller: '\Drupal\router_test\TestControllers::test2'
  11. requirements:
  12. _access: 'TRUE'
  13. router_test.3:
  14. path: '/router_test/test3/{value}'
  15. defaults:
  16. _controller: '\Drupal\router_test\TestControllers::test3'
  17. requirements:
  18. _access: 'TRUE'
  19. router_test.4:
  20. path: '/router_test/test4/{value}'
  21. defaults:
  22. _controller: '\Drupal\router_test\TestControllers::test4'
  23. value: 'narf'
  24. requirements:
  25. _access: 'TRUE'
  26. router_test.6:
  27. path: '/router_test/test6'
  28. defaults:
  29. _controller: '\Drupal\router_test\TestControllers::test1'
  30. requirements:
  31. _access: 'TRUE'
  32. router_test.7:
  33. path: '/router_test/test7'
  34. defaults:
  35. _controller: '\Drupal\router_test\TestControllers::test7'
  36. requirements:
  37. _permission: 'access test7'
  38. router_test.8:
  39. path: '/router_test/test8'
  40. defaults:
  41. _controller: '\Drupal\router_test\TestControllers::test8'
  42. router_test.10:
  43. path: '/router_test/test10'
  44. options:
  45. _auth: [ 'basic_auth', 'cookie' ]
  46. defaults:
  47. _controller: '\Drupal\router_test\TestContent::test1'
  48. requirements:
  49. _access: 'TRUE'
  50. router_test.11:
  51. path: '/router_test/test11'
  52. options:
  53. _auth: [ 'basic_auth' ]
  54. requirements:
  55. _user_is_logged_in: 'TRUE'
  56. defaults:
  57. _controller: '\Drupal\router_test\TestContent::test11'
  58. router_test.12:
  59. path: '/router_test/test12/{user}'
  60. requirements:
  61. _access: 'TRUE'
  62. defaults:
  63. _controller: '\Drupal\router_test\TestContent::subrequestTest'
  64. router_test.13:
  65. path: '/router_test/test13/{user}'
  66. requirements:
  67. _access: 'TRUE'
  68. defaults:
  69. _controller: '\Drupal\router_test\TestContent::testAccount'
  70. router_test.14:
  71. path: '/router_test/test14/{uid}'
  72. requirements:
  73. _access: 'TRUE'
  74. defaults:
  75. _controller: '\Drupal\router_test\TestControllers::test9'
  76. router_test.15:
  77. path: '/router_test/test15'
  78. defaults:
  79. _controller: '\Drupal\router_test\TestControllers::test1'
  80. requirements:
  81. _access: 'FALSE'
  82. router_test.16:
  83. path: '/router_test/test16'
  84. defaults:
  85. _controller: '\Drupal\router_test\TestControllers::test1'
  86. requirements:
  87. _permission: 'administer users'
  88. router_test.17:
  89. path: '/router_test/test17'
  90. defaults:
  91. _controller: '\Drupal\router_test\TestControllers::test10'
  92. requirements:
  93. _access: 'TRUE'
  94. router_test.18:
  95. path: '/router_test/test18'
  96. defaults:
  97. _controller: '\Drupal\router_test\TestControllers::test18'
  98. requirements:
  99. _access: 'TRUE'
  100. router_test.19:
  101. path: '/router_test/test19'
  102. defaults:
  103. _controller: '\Drupal\router_test\TestControllers::test18'
  104. requirements:
  105. _role: 'anonymous'
  106. router_test.20:
  107. path: '/router_test/test20'
  108. defaults:
  109. _controller: '\Drupal\router_test\TestControllers::test1'
  110. requirements:
  111. _role: 'anonymous'
  112. router_test.21:
  113. path: '/router_test/test21'
  114. defaults:
  115. _controller: '\Drupal\router_test\TestControllers::test21'
  116. requirements:
  117. _access: 'TRUE'
  118. router_test.22:
  119. path: '/router_test/test22'
  120. defaults:
  121. _controller: '\Drupal\router_test\TestControllers::test21'
  122. requirements:
  123. _role: 'anonymous'
  124. router_test.23:
  125. path: '/router_test/test23'
  126. defaults:
  127. _controller: '\Drupal\router_test\TestControllers::test23'
  128. requirements:
  129. _access: 'TRUE'
  130. router_test.24:
  131. path: '/router_test/test24'
  132. defaults:
  133. _controller: '\Drupal\router_test\TestControllers::test24'
  134. requirements:
  135. _access: 'TRUE'
  136. router_test.25:
  137. path: '/router_test/test25'
  138. defaults:
  139. _controller: '\Drupal\router_test\TestControllers::test25'
  140. requirements:
  141. _access: 'TRUE'
  142. router_test.26:
  143. path: '/router_test/test26'
  144. defaults:
  145. _form: '\Drupal\system\Form\LoggingForm'
  146. _title: 'Cron'
  147. requirements:
  148. _access: 'TRUE'
  149. router_test.27:
  150. path: '/router_test/test27'
  151. defaults:
  152. _entity_form: 'date_format.add'
  153. _title: 'Add date format'
  154. requirements:
  155. _access: 'TRUE'
  156. router_test.hierarchy_parent:
  157. path: '/menu-test/parent'
  158. defaults:
  159. _controller: '\Drupal\router_test\TestControllers::test'
  160. requirements:
  161. _access: 'TRUE'
  162. router_test.hierarchy_parent_child1:
  163. path: '/menu-test/parent/child-1'
  164. defaults:
  165. _controller: '\Drupal\router_test\TestControllers::test'
  166. requirements:
  167. _access: 'TRUE'
  168. router_test.hierarchy_parent_child1_1:
  169. path: '/menu-test/parent/child-1/child-1-1'
  170. defaults:
  171. _controller: '\Drupal\router_test\TestControllers::test'
  172. requirements:
  173. _access: 'TRUE'
  174. router_test.hierarchy_parent_child1_2:
  175. path: '/menu-test/parent/child-1/child-1-2'
  176. defaults:
  177. _controller: '\Drupal\router_test\TestControllers::test'
  178. requirements:
  179. _access: 'TRUE'
  180. router_test.hierarchy_parent_child2:
  181. path: '/menu-test/parent/child-2'
  182. defaults:
  183. _controller: '\Drupal\router_test\TestControllers::test'
  184. requirements:
  185. _access: 'TRUE'
  186. router_test.two_duplicate1:
  187. path: '/router-test/duplicate-path2'
  188. defaults:
  189. _controller: '\Drupal\router_test\TestControllers::testRouteName'
  190. requirements:
  191. _access: 'TRUE'
  192. router_test.two_duplicate2:
  193. path: '/router-test/duplicate-path2'
  194. defaults:
  195. _controller: '\Drupal\router_test\TestControllers::testRouteName'
  196. requirements:
  197. _access: 'TRUE'
  198. router_test.case_sensitive_duplicate1:
  199. path: '/router-test/case-sensitive-duplicate-path3'
  200. defaults:
  201. _controller: '\Drupal\router_test\TestControllers::testRouteName'
  202. requirements:
  203. _access: 'TRUE'
  204. router_test.case_sensitive_duplicate2:
  205. path: '/router-test/case-sensitive-Duplicate-PATH3'
  206. defaults:
  207. _controller: '\Drupal\router_test\TestControllers::testRouteName'
  208. requirements:
  209. _access: 'TRUE'
  210. router_test.case_sensitive_duplicate3:
  211. path: '/router-test/case-sensitive-duplicate-path3'
  212. defaults:
  213. _controller: '\Drupal\router_test\TestControllers::testRouteName'
  214. requirements:
  215. _access: 'TRUE'