-
Notifications
You must be signed in to change notification settings - Fork 5
/
micro.routing.yml
67 lines (59 loc) · 1.75 KB
/
micro.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
micro.type_add:
path: '/admin/structure/micro/add'
defaults:
_entity_form: 'micro_type.add'
requirements:
_permission: 'administer micro types'
entity.micro_type.edit_form:
path: '/admin/structure/micro/manage/{micro_type}'
defaults:
_entity_form: 'micro_type.edit'
requirements:
_entity_access: 'micro_type.update'
entity.micro_type.delete_form:
path: '/admin/structure/micro/manage/{micro_type}/delete'
defaults:
_entity_form: 'micro_type.delete'
_title: 'Delete'
requirements:
_entity_access: 'micro_type.delete'
micro.add:
path: '/micro/add/{micro_type}'
defaults:
_controller: '\Drupal\micro\Controller\MicroController::add'
_title_callback: '\Drupal\micro\Controller\MicroController::addPageTitle'
requirements:
_entity_create_access: 'micro:{micro_type}'
micro.add_page:
path: '/micro/add'
defaults:
_controller: '\Drupal\micro\Controller\MicroController::addPage'
_title: 'Add new micro content'
requirements:
_micro_add_access: 'TRUE'
entity.micro.canonical:
path: '/micro/{micro}'
defaults:
_controller: '\Drupal\micro\Controller\MicroController::page'
requirements:
_entity_access: 'micro.view'
entity.micro.edit_form:
path: '/micro/{micro}/edit'
defaults:
_entity_form: 'micro.edit'
requirements:
_entity_access: 'micro.edit'
entity.micro.delete_form:
path: '/micro/{micro}/delete'
defaults:
_entity_form: 'micro.delete'
requirements:
_permission: 'administer micro content'
entity.micro_type.collection:
path: '/admin/structure/micro'
defaults:
_controller: '\Drupal\Core\Entity\Controller\EntityListController::listing'
entity_type: 'micro_type'
_title: 'Micro types'
requirements:
_permission: 'administer micro types'