user.routing.yml

Same filename in other branches
  1. 9 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
46 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. entity.user.collection:
  29. path: '/admin/people'
  30. defaults:
  31. _entity_list: 'user'
  32. _title: 'People'
  33. requirements:
  34. _permission: 'administer users'
  35. user.admin_create:
  36. path: '/admin/people/create'
  37. defaults:
  38. _entity_form: 'user.register'
  39. _title: 'Add user'
  40. requirements:
  41. _entity_create_access: 'user'
  42. user.admin_permissions:
  43. path: '/admin/people/permissions'
  44. defaults:
  45. _form: '\Drupal\user\Form\UserPermissionsForm'
  46. _title: 'Permissions'
  47. requirements:
  48. _permission: 'administer permissions'
  49. entity.user_role.edit_permissions_form:
  50. path: '/admin/people/permissions/{user_role}'
  51. defaults:
  52. _form: '\Drupal\user\Form\UserPermissionsRoleSpecificForm'
  53. _title: 'Edit role'
  54. requirements:
  55. _entity_access: 'user_role.update'
  56. user.multiple_cancel_confirm:
  57. path: '/admin/people/cancel'
  58. defaults:
  59. _form: '\Drupal\user\Form\UserMultipleCancelConfirm'
  60. _title: 'Cancel user'
  61. requirements:
  62. _permission: 'administer users'
  63. entity.user_role.collection:
  64. path: '/admin/people/roles'
  65. defaults:
  66. _entity_list: 'user_role'
  67. _title: 'Roles'
  68. requirements:
  69. _permission: 'administer permissions'
  70. user.role_add:
  71. path: '/admin/people/roles/add'
  72. defaults:
  73. _entity_form: user_role.default
  74. _title: 'Add role'
  75. requirements:
  76. _permission: 'administer permissions'
  77. entity.user_role.edit_form:
  78. path: '/admin/people/roles/manage/{user_role}'
  79. defaults:
  80. _entity_form: user_role.default
  81. _title: 'Edit role'
  82. requirements:
  83. _entity_access: user_role.update
  84. entity.user_role.delete_form:
  85. path: '/admin/people/roles/manage/{user_role}/delete'
  86. defaults:
  87. _entity_form: user_role.delete
  88. _title: 'Delete role'
  89. requirements:
  90. _entity_access: user_role.delete
  91. user.pass:
  92. path: '/user/password'
  93. defaults:
  94. _form: '\Drupal\user\Form\UserPasswordForm'
  95. _title: 'Reset your password'
  96. requirements:
  97. _access: 'TRUE'
  98. options:
  99. _maintenance_access: TRUE
  100. user.pass.http:
  101. path: '/user/password'
  102. defaults:
  103. _controller: \Drupal\user\Controller\UserAuthenticationController::resetPassword
  104. methods: [POST]
  105. requirements:
  106. _access: 'TRUE'
  107. _format: 'json'
  108. user.page:
  109. path: '/user'
  110. defaults:
  111. _controller: '\Drupal\user\Controller\UserController::userPage'
  112. _title: 'My account'
  113. requirements:
  114. _user_is_logged_in: 'TRUE'
  115. user.login:
  116. path: '/user/login'
  117. defaults:
  118. _form: '\Drupal\user\Form\UserLoginForm'
  119. _title: 'Log in'
  120. requirements:
  121. _user_is_logged_in: 'FALSE'
  122. options:
  123. _maintenance_access: TRUE
  124. user.login.http:
  125. path: '/user/login'
  126. defaults:
  127. _controller: \Drupal\user\Controller\UserAuthenticationController::login
  128. methods: [POST]
  129. requirements:
  130. _user_is_logged_in: 'FALSE'
  131. _format: 'json'
  132. user.login_status.http:
  133. path: '/user/login_status'
  134. defaults:
  135. _controller: \Drupal\user\Controller\UserAuthenticationController::loginStatus
  136. methods: [GET]
  137. requirements:
  138. _access: 'TRUE'
  139. _format: 'json'
  140. user.logout.http:
  141. path: '/user/logout'
  142. defaults:
  143. _controller: \Drupal\user\Controller\UserAuthenticationController::logout
  144. methods: [POST]
  145. requirements:
  146. _user_is_logged_in: 'TRUE'
  147. _format: 'json'
  148. _csrf_token: 'TRUE'
  149. user.cancel_confirm:
  150. path: '/user/{user}/cancel/confirm/{timestamp}/{hashed_pass}'
  151. defaults:
  152. _title: 'Confirm account cancellation'
  153. _controller: '\Drupal\user\Controller\UserController::confirmCancel'
  154. timestamp: 0
  155. hashed_pass: ''
  156. requirements:
  157. _entity_access: 'user.delete'
  158. user: \d+
  159. user.reset.login:
  160. path: '/user/reset/{uid}/{timestamp}/{hash}/login'
  161. defaults:
  162. _controller: '\Drupal\user\Controller\UserController::resetPassLogin'
  163. _title: 'Reset password'
  164. requirements:
  165. _user_is_logged_in: 'FALSE'
  166. options:
  167. _maintenance_access: TRUE
  168. no_cache: TRUE
  169. user.reset:
  170. path: '/user/reset/{uid}/{timestamp}/{hash}'
  171. defaults:
  172. _controller: '\Drupal\user\Controller\UserController::resetPass'
  173. _title: 'Reset password'
  174. requirements:
  175. _access: 'TRUE'
  176. options:
  177. _maintenance_access: TRUE
  178. no_cache: TRUE
  179. user.reset.form:
  180. path: '/user/reset/{uid}'
  181. defaults:
  182. _controller: '\Drupal\user\Controller\UserController::getResetPassForm'
  183. _title: 'Reset password'
  184. requirements:
  185. _user_is_logged_in: 'FALSE'
  186. options:
  187. _maintenance_access: TRUE
  188. no_cache: TRUE
  189. user.well-known.change_password:
  190. path: '/.well-known/change-password'
  191. defaults:
  192. _controller: '\Drupal\user\Controller\UserController::userEditPage'
  193. requirements:
  194. _user_is_logged_in: 'TRUE'

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