-
Notifications
You must be signed in to change notification settings - Fork 8
/
workbench_access.routing.yml
43 lines (40 loc) · 1.48 KB
/
workbench_access.routing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
workbench_access.admin:
path: '/admin/config/workflow/workbench_access/settings'
defaults:
_form: 'Drupal\workbench_access\Form\WorkbenchAccessConfigForm'
_title: 'Workbench Access'
requirements:
_permission: 'administer workbench access'
entity.access_scheme.by_role:
path: '/admin/config/workflow/workbench_access/{access_scheme}/sections/{id}/roles'
defaults:
_form: 'Drupal\workbench_access\Form\WorkbenchAccessByRoleForm'
_title_callback: 'Drupal\workbench_access\Form\WorkbenchAccessByRoleForm::pageTitle'
requirements:
_permission: 'assign workbench access'
options:
parameters:
access_scheme:
type: 'entity:access_scheme'
entity.access_scheme.by_user:
path: '/admin/config/workflow/workbench_access/{access_scheme}/sections/{id}/users'
defaults:
_form: 'Drupal\workbench_access\Form\WorkbenchAccessByUserForm'
_title_callback: 'Drupal\workbench_access\Form\WorkbenchAccessByUserForm::pageTitle'
requirements:
_permission: 'assign workbench access'
options:
parameters:
access_scheme:
type: 'entity:access_scheme'
entity.section_association.edit:
path: '/user/{user}/workbench_access'
defaults:
_form: 'Drupal\workbench_access\Form\AssignUserForm'
_title: 'Workbench Access'
requirements:
_custom_access: 'Drupal\workbench_access\Form\AssignUserForm::access'
_permission: 'assign workbench access+assign selected workbench access'
options:
_admin_route: TRUE
user: \d+