user.routing.yml 4.03 KB
Newer Older
1
user.register:
2
  path: '/user/register'
3
  defaults:
4
    _entity_form: 'user.register'
5 6
  requirements:
    _access_user_register: 'TRUE'
7

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

15
user.autocomplete:
16
  path: '/user/autocomplete'
17
  defaults:
18
    _controller: '\Drupal\user\Controller\UserAutocompleteController::autocompleteUser'
19 20 21
  requirements:
    _permission: 'access user profiles'

22
user.autocomplete_anonymous:
23
  path: '/user/autocomplete/anonymous'
24
  defaults:
25
    _controller: '\Drupal\user\Controller\UserAutocompleteController::autocompleteUserAnonymous'
26 27
  requirements:
    _permission: 'access user profiles'
28

29
user.admin_index:
30
  path: '/admin/config/people'
31 32 33 34 35
  defaults:
    _content: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  requirements:
    _permission: 'access administration pages'

36
user.account_settings:
37
  path: '/admin/config/people/accounts'
38 39 40
  defaults:
    _form: '\Drupal\user\AccountSettingsForm'
  requirements:
41
    _permission: 'administer account settings'
42

43 44 45 46 47 48 49
user.admin_account:
  path: '/admin/people'
  defaults:
    _controller: '\Drupal\user\Controller\UserAdmin::userList'
  requirements:
    _permission: 'administer users'

50
user.admin_create:
51
  path: '/admin/people/create'
52 53 54 55 56
  defaults:
    _entity_form: 'user.register'
  requirements:
    _permission: 'administer users'

57
user.admin_permissions:
58
  path: '/admin/people/permissions'
59 60 61 62 63
  defaults:
    _form: '\Drupal\user\Form\UserPermissionsForm'
  requirements:
    _permission: 'administer permissions'

64
user.admin_permission:
65
  path: '/admin/people/permissions/{role_id}'
66 67 68 69 70
  defaults:
    _form: '\Drupal\user\Form\UserPermissionsRoleSpecificForm'
  requirements:
    _permission: 'administer permissions'

71
user.multiple_cancel_confirm:
72
  path: '/admin/people/cancel'
73 74 75 76 77 78
  defaults:
    _form: '\Drupal\user\Form\UserMultipleCancelConfirm'
    _title: 'Cancel user'
  requirements:
    _permission: 'administer users'

79
user.role_list:
80
  path: '/admin/people/roles'
81
  defaults:
82
    _entity_list: 'user_role'
83 84 85
  requirements:
    _permission: 'administer permissions'

86
user.role_add:
87
  path: '/admin/people/roles/add'
88 89 90 91 92
  defaults:
    _entity_form: user_role.default
  requirements:
    _permission: 'administer permissions'

93
user.role_edit:
94
  path: '/admin/people/roles/manage/{user_role}'
95 96 97 98 99
  defaults:
    _entity_form: user_role.default
  requirements:
    _entity_access: user_role.update

100
user.role_delete:
101
  path: '/admin/people/roles/manage/{user_role}/delete'
102
  defaults:
103
    _entity_form: user_role.delete
104 105
  requirements:
    _entity_access: user_role.delete
106

107
user.pass:
108
  path: '/user/password'
109 110 111 112
  defaults:
    _form: '\Drupal\user\Form\UserPasswordForm'
  requirements:
    _access: 'TRUE'
113

114
user.page:
115
  path: '/user'
116 117 118 119 120
  defaults:
    _content: '\Drupal\user\Controller\UserController::userPage'
  requirements:
    _access: 'TRUE'

121 122 123 124
user.view:
  path: '/user/{user}'
  defaults:
    _entity_view: 'user.full'
125
    _title_callback: 'Drupal\user\Controller\UserController::userTitle'
126 127 128 129
  requirements:
    user: \d+
    _entity_access: 'user.view'

130
user.login:
131
  path: '/user/login'
132 133 134 135
  defaults:
    _form: '\Drupal\user\Form\UserLoginForm'
  requirements:
    _access: 'TRUE'
136

137
user.edit:
138
  path: '/user/{user}/edit'
139 140 141 142
  defaults:
    _entity_form: 'user.default'
  requirements:
    _entity_access: 'user.update'
143

144
user.cancel:
145
  path: '/user/{user}/cancel'
146 147 148 149 150
  defaults:
    _title: 'Cancel account'
    _entity_form: 'user.cancel'
  requirements:
    _entity_access: 'user.delete'
151 152 153 154 155 156 157 158 159 160

user.cancel_confirm:
  path: '/user/{user}/cancel/confirm/{timestamp}/{hashed_pass}'
  defaults:
    _title: 'Confirm account cancellation'
    _content: '\Drupal\user\Controller\UserController::confirmCancel'
    timestamp: 0
    hashed_pass: ''
  requirements:
    _entity_access: 'user.delete'
161 162 163 164 165 166 167 168 169

user.reset:
  path: '/user/reset/{uid}/{timestamp}/{hash}/{operation}'
  defaults:
    _content: '\Drupal\user\Form\UserForm::resetPass'
    _title: 'Reset password'
    operation: NULL
  requirements:
    _access: 'TRUE'