user.routing.yml

Same filename in other branches
  1. 8.9.x core/modules/user/user.routing.yml
  2. 10 core/modules/user/user.routing.yml
  3. 11.x core/modules/user/user.routing.yml
core/modules/user/user.routing.yml
48 string references to YAML keys in user.routing.yml
AccessDeniedSubscriber::onException in core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php
Redirects users when access is denied.
BigPipeTest::testNoJsDetection in core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
Tests BigPipe's no-JS detection.
DefaultMenuLinkTreeManipulatorsTest::testCheckAccess in core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php
Tests the checkAccess() tree manipulator.
DynamicMenuLinkMock::getRouteName in core/tests/Drupal/Tests/Core/Menu/DynamicMenuLinkMock.php
Returns the route name, if available.
EngineTwigTest::testTwigLinkGenerator in core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php
Tests the link_generator Twig functions.

... See full list

File

core/modules/user/user.routing.yml

View source
  1. user.register:
  2. path: '/user/register'
  3. defaults:
  4. _entity_form: 'user.register'
  5. _title: 'Create new account'
  6. requirements:
  7. _access_user_register: 'TRUE'
  8. user.logout:
  9. path: '/user/logout'
  10. defaults:
  11. _controller: '\Drupal\user\Controller\UserController::logout'
  12. requirements:
  13. _user_is_logged_in: 'TRUE'
  14. user.admin_index:
  15. path: '/admin/config/people'
  16. defaults:
  17. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  18. _title: 'People'
  19. requirements:
  20. _permission: 'access administration pages'
  21. entity.user.admin_form:
  22. path: '/admin/config/people/accounts'
  23. defaults:
  24. _form: '\Drupal\user\AccountSettingsForm'
  25. _title: 'Account settings'
  26. requirements:
  27. _permission: 'administer account settings'
  28. user.role.settings:
  29. path: '/admin/people/role-settings'
  30. defaults:
  31. _form: '\Drupal\user\Form\RoleSettingsForm'
  32. _title: 'Role settings'
  33. requirements:
  34. _permission: 'administer permissions'
  35. entity.user.collection:
  36. path: '/admin/people'
  37. defaults:
  38. _entity_list: 'user'
  39. _title: 'People'
  40. requirements:
  41. _permission: 'administer users'
  42. user.admin_create:
  43. path: '/admin/people/create'
  44. defaults:
  45. _entity_form: 'user.register'
  46. _title: 'Add user'
  47. requirements:
  48. _entity_create_access: 'user'
  49. user.admin_permissions:
  50. path: '/admin/people/permissions'
  51. defaults:
  52. _form: '\Drupal\user\Form\UserPermissionsForm'
  53. _title: 'Permissions'
  54. requirements:
  55. _permission: 'administer permissions'
  56. user.admin_permissions.module:
  57. path: '/admin/people/permissions/module/{modules}'
  58. defaults:
  59. _form: '\Drupal\user\Form\UserPermissionsModuleSpecificForm'
  60. _title: 'Module Permissions'
  61. requirements:
  62. _permission: 'administer permissions'
  63. modules: '[a-z][a-z0-9_,]*'
  64. _custom_access: '\Drupal\user\Form\UserPermissionsModuleSpecificForm::access'
  65. entity.user_role.edit_permissions_form:
  66. path: '/admin/people/permissions/{user_role}'
  67. defaults:
  68. _form: '\Drupal\user\Form\UserPermissionsRoleSpecificForm'
  69. _title: 'Edit role'
  70. requirements:
  71. _entity_access: 'user_role.update'
  72. user.multiple_cancel_confirm:
  73. path: '/admin/people/cancel'
  74. defaults:
  75. _form: '\Drupal\user\Form\UserMultipleCancelConfirm'
  76. _title: 'Cancel user'
  77. requirements:
  78. _permission: 'administer users'
  79. entity.user_role.collection:
  80. path: '/admin/people/roles'
  81. defaults:
  82. _entity_list: 'user_role'
  83. _title: 'Roles'
  84. requirements:
  85. _permission: 'administer permissions'
  86. user.role_add:
  87. path: '/admin/people/roles/add'
  88. defaults:
  89. _entity_form: user_role.default
  90. _title: 'Add role'
  91. requirements:
  92. _permission: 'administer permissions'
  93. entity.user_role.edit_form:
  94. path: '/admin/people/roles/manage/{user_role}'
  95. defaults:
  96. _entity_form: user_role.default
  97. _title: 'Edit role'
  98. requirements:
  99. _entity_access: user_role.update
  100. entity.user_role.delete_form:
  101. path: '/admin/people/roles/manage/{user_role}/delete'
  102. defaults:
  103. _entity_form: user_role.delete
  104. _title: 'Delete role'
  105. requirements:
  106. _entity_access: user_role.delete
  107. user.pass:
  108. path: '/user/password'
  109. defaults:
  110. _form: '\Drupal\user\Form\UserPasswordForm'
  111. _title: 'Reset your password'
  112. requirements:
  113. _access: 'TRUE'
  114. options:
  115. _maintenance_access: TRUE
  116. user.pass.http:
  117. path: '/user/password'
  118. defaults:
  119. _controller: \Drupal\user\Controller\UserAuthenticationController::resetPassword
  120. methods: [POST]
  121. requirements:
  122. _access: 'TRUE'
  123. _format: 'json'
  124. user.page:
  125. path: '/user'
  126. defaults:
  127. _controller: '\Drupal\user\Controller\UserController::userPage'
  128. _title: 'My account'
  129. requirements:
  130. _user_is_logged_in: 'TRUE'
  131. user.edit:
  132. path: '/user/edit'
  133. defaults:
  134. _controller: '\Drupal\user\Controller\UserController::userEditPage'
  135. _title: 'Edit account'
  136. requirements:
  137. _user_is_logged_in: 'TRUE'
  138. user.login:
  139. path: '/user/login'
  140. defaults:
  141. _form: '\Drupal\user\Form\UserLoginForm'
  142. _title: 'Log in'
  143. requirements:
  144. _user_is_logged_in: 'FALSE'
  145. options:
  146. _maintenance_access: TRUE
  147. user.login.http:
  148. path: '/user/login'
  149. defaults:
  150. _controller: \Drupal\user\Controller\UserAuthenticationController::login
  151. methods: [POST]
  152. requirements:
  153. _user_is_logged_in: 'FALSE'
  154. _format: 'json'
  155. user.login_status.http:
  156. path: '/user/login_status'
  157. defaults:
  158. _controller: \Drupal\user\Controller\UserAuthenticationController::loginStatus
  159. methods: [GET]
  160. requirements:
  161. _access: 'TRUE'
  162. _format: 'json'
  163. user.logout.http:
  164. path: '/user/logout'
  165. defaults:
  166. _controller: \Drupal\user\Controller\UserAuthenticationController::logout
  167. methods: [POST]
  168. requirements:
  169. _user_is_logged_in: 'TRUE'
  170. _format: 'json'
  171. _csrf_token: 'TRUE'
  172. user.cancel_confirm:
  173. path: '/user/{user}/cancel/confirm/{timestamp}/{hashed_pass}'
  174. defaults:
  175. _title: 'Confirm account cancellation'
  176. _controller: '\Drupal\user\Controller\UserController::confirmCancel'
  177. timestamp: 0
  178. hashed_pass: ''
  179. requirements:
  180. _entity_access: 'user.delete'
  181. user: \d+
  182. user.reset.login:
  183. path: '/user/reset/{uid}/{timestamp}/{hash}/login'
  184. defaults:
  185. _controller: '\Drupal\user\Controller\UserController::resetPassLogin'
  186. _title: 'Reset password'
  187. requirements:
  188. _user_is_logged_in: 'FALSE'
  189. options:
  190. _maintenance_access: TRUE
  191. no_cache: TRUE
  192. user.reset:
  193. path: '/user/reset/{uid}/{timestamp}/{hash}'
  194. defaults:
  195. _controller: '\Drupal\user\Controller\UserController::resetPass'
  196. _title: 'Reset password'
  197. requirements:
  198. _access: 'TRUE'
  199. options:
  200. _maintenance_access: TRUE
  201. no_cache: TRUE
  202. user.reset.form:
  203. path: '/user/reset/{uid}'
  204. defaults:
  205. _controller: '\Drupal\user\Controller\UserController::getResetPassForm'
  206. _title: 'Reset password'
  207. requirements:
  208. _user_is_logged_in: 'FALSE'
  209. options:
  210. _maintenance_access: TRUE
  211. no_cache: TRUE
  212. user.well-known.change_password:
  213. path: '/.well-known/change-password'
  214. defaults:
  215. _controller: '\Drupal\user\Controller\UserController::userEditPage'
  216. requirements:
  217. _user_is_logged_in: 'TRUE'

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