-
Notifications
You must be signed in to change notification settings - Fork 0
/
group_gr_roles.routing.yml
51 lines (46 loc) · 1.53 KB
/
group_gr_roles.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
44
45
46
47
48
49
50
51
# Group role entity routes.
entity.group_gr_role.collection:
path: '/group/{group}/roles'
defaults:
_entity_list: 'group_gr_role'
_title: 'Group roles'
requirements:
_permission: 'administer group'
entity.group_gr_role.add_form:
path: '/group/{group}/roles/add'
defaults:
_controller: '\Drupal\group_gr_roles\Entity\Controller\GroupGrRoleController::add'
_title_callback: '\Drupal\group_gr_roles\Entity\Controller\GroupGrRoleController::addPageTitle'
requirements:
_permission: 'administer group'
entity.group_gr_role.permissions_form:
path: '/group/{group}/permissions'
defaults:
_form: '\Drupal\group_gr_roles\Form\GroupPermissionsGroupSpecificForm'
_title: 'Edit group permissions'
requirements:
_permission: 'administer group'
entity.group_gr_role.edit_form:
path: '/group/{group}/roles/manage/{group_gr_role}'
defaults:
_entity_form: 'group_gr_role.edit'
requirements:
_permission: 'administer group'
entity.group_gr_role.delete_form:
path: '/group/{group}/roles/delete/{group_gr_role}'
defaults:
_entity_form: 'group_gr_role.delete'
_title: 'Delete'
requirements:
_entity_access: 'group_gr_role.delete'
#entity.group_gr_role.permissions_form:
# path: '/group/{group}/roles/{group_og_role}/permissions'
# defaults:
# _form: '\Drupal\group\Form\GroupPermissionsRoleSpecificForm'
# _title: 'Edit group role permissions'
# requirements:
# _permission: 'administer group'
# options:
# parameters:
# group_type:
# type: 'entity:group_type'