user.routing.yml

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

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