user.routing.yml 3.63 KB
Newer Older
1
user.register:
2
  path: '/user/register'
3
  defaults:
4
    _entity_form: 'user.register'
5
    _title: 'Create new account'
6 7
  requirements:
    _access_user_register: 'TRUE'
8

9
user.logout:
10
  path: '/user/logout'
11 12 13 14 15
  defaults:
    _controller: '\Drupal\user\Controller\UserController::logout'
  requirements:
    _user_is_logged_in: 'TRUE'

16
user.admin_index:
17
  path: '/admin/config/people'
18
  defaults:
19
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
20
    _title: 'People'
21 22 23
  requirements:
    _permission: 'access administration pages'

24
entity.user.admin_form:
25
  path: '/admin/config/people/accounts'
26 27
  defaults:
    _form: '\Drupal\user\AccountSettingsForm'
28
    _title: 'Account settings'
29
  requirements:
30
    _permission: 'administer account settings'
31

32
entity.user.collection:
33 34
  path: '/admin/people'
  defaults:
35
    _entity_list: 'user'
36
    _title: 'People'
37 38 39
  requirements:
    _permission: 'administer users'

40
user.admin_create:
41
  path: '/admin/people/create'
42 43
  defaults:
    _entity_form: 'user.register'
44
    _title: 'Add user'
45 46 47
  requirements:
    _permission: 'administer users'

48
user.admin_permissions:
49
  path: '/admin/people/permissions'
50 51
  defaults:
    _form: '\Drupal\user\Form\UserPermissionsForm'
52
    _title: 'Permissions'
53 54 55
  requirements:
    _permission: 'administer permissions'

56
entity.user_role.edit_permissions_form:
57
  path: '/admin/people/permissions/{user_role}'
58 59
  defaults:
    _form: '\Drupal\user\Form\UserPermissionsRoleSpecificForm'
60
    _title: 'Edit role'
61
  requirements:
62
    _entity_access: 'user_role.update'
63

64
user.multiple_cancel_confirm:
65
  path: '/admin/people/cancel'
66 67 68 69 70 71
  defaults:
    _form: '\Drupal\user\Form\UserMultipleCancelConfirm'
    _title: 'Cancel user'
  requirements:
    _permission: 'administer users'

72
entity.user_role.collection:
73
  path: '/admin/people/roles'
74
  defaults:
75
    _entity_list: 'user_role'
76
    _title: 'Roles'
77 78 79
  requirements:
    _permission: 'administer permissions'

80
user.role_add:
81
  path: '/admin/people/roles/add'
82 83
  defaults:
    _entity_form: user_role.default
84
    _title: 'Add role'
85 86 87
  requirements:
    _permission: 'administer permissions'

88
entity.user_role.edit_form:
89
  path: '/admin/people/roles/manage/{user_role}'
90 91
  defaults:
    _entity_form: user_role.default
92
    _title: 'Edit role'
93 94 95
  requirements:
    _entity_access: user_role.update

96
entity.user_role.delete_form:
97
  path: '/admin/people/roles/manage/{user_role}/delete'
98
  defaults:
99
    _entity_form: user_role.delete
100
    _title: 'Delete role'
101 102
  requirements:
    _entity_access: user_role.delete
103

104
user.pass:
105
  path: '/user/password'
106 107
  defaults:
    _form: '\Drupal\user\Form\UserPasswordForm'
108
    _title: 'Reset your password'
109 110
  requirements:
    _access: 'TRUE'
111 112
  options:
    _maintenance_access: TRUE
113

114
user.page:
115
  path: '/user'
116
  defaults:
117
    _controller: '\Drupal\user\Controller\UserController::userPage'
118
    _title: 'My account'
119
  requirements:
120
    _user_is_logged_in: 'TRUE'
121

122
user.login:
123
  path: '/user/login'
124 125
  defaults:
    _form: '\Drupal\user\Form\UserLoginForm'
126
    _title: 'Log in'
127
  requirements:
128
    _user_is_logged_in: 'FALSE'
129 130
  options:
    _maintenance_access: TRUE
131

132 133 134 135
user.cancel_confirm:
  path: '/user/{user}/cancel/confirm/{timestamp}/{hashed_pass}'
  defaults:
    _title: 'Confirm account cancellation'
136
    _controller: '\Drupal\user\Controller\UserController::confirmCancel'
137 138 139 140
    timestamp: 0
    hashed_pass: ''
  requirements:
    _entity_access: 'user.delete'
141
    user: \d+
142 143

user.reset:
144
  path: '/user/reset/{uid}/{timestamp}/{hash}'
145
  defaults:
146
    _controller: '\Drupal\user\Controller\UserController::resetPass'
147 148 149
    _title: 'Reset password'
  requirements:
    _access: 'TRUE'
150 151
  options:
    _maintenance_access: TRUE
152
    no_cache: TRUE