-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
patternkit.routing.yml
88 lines (80 loc) · 2.47 KB
/
patternkit.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
entity.patternkit_block.collection:
path: '/admin/structure/block/patternkit'
defaults:
_title: 'Patternkit block library'
_entity_list: 'patternkit_block'
requirements:
_permission: 'administer blocks'
entity.patternkit_block.canonical:
path: '/patternkit_block/{patternkit_block}'
defaults:
_entity_form: 'patternkit_block.edit'
options:
_admin_route: TRUE
requirements:
_permission: 'administer blocks'
patternkit_block: \d+
entity.patternkit_block.edit_form:
path: '/patternkit_block/{patternkit_block}'
defaults:
_entity_form: 'patternkit_block.edit'
options:
_admin_route: TRUE
requirements:
_permission: 'administer blocks'
patternkit_block: \d+
entity.patternkit_block.delete_form:
path: '/patternkit_block/{patternkit_block}/delete'
defaults:
_entity_form: 'patternkit_block.delete'
_title: 'Delete'
options:
_admin_route: TRUE
requirements:
_permission: 'administer blocks'
patternkit_block: \d+
patternkit.add_form:
path: '/patternkit_block/add/{pattern_id}'
defaults:
_controller: '\Drupal\patternkit\Controller\PatternkitController::addForm'
_title_callback: '\Drupal\patternkit\Controller\PatternkitController::getAddFormTitle'
options:
_admin_route: TRUE
requirements:
_permission: 'administer blocks'
patternkit.add_page:
path: '/patternkit_block/add'
defaults:
_controller: '\Drupal\patternkit\Controller\PatternkitController::add'
_title: 'Add Patternkit block'
options:
_admin_route: TRUE
requirements:
_permission: 'administer blocks'
patternkit.api:
path: '/api/patternkit'
defaults:
_controller: '\Drupal\patternkit\Controller\PatternkitController::apiPattern'
_disable_route_normalizer: 'TRUE'
requirements:
_access: 'TRUE'
patternkit.settings:
path: '/admin/config/user-interface/patternkit'
defaults:
_form: '\Drupal\patternkit\Form\PatternkitSettingsForm'
_title: 'Patternkit settings'
_description: 'Configure Patternkit Pattern Library Support.'
options:
_admin_route: TRUE
requirements:
_permission: 'access administration pages'
patternkit.settings.json_settings:
path: '/admin/config/user-interface/patternkit/json'
defaults:
_form: '\Drupal\patternkit\Form\PatternLibraryJSONForm'
_title: 'Patternkit JSON Library settings'
_description: 'Configure Patternkit JSON Pattern Library Support.'
options:
_admin_route: TRUE
requirements:
_permission: 'access administration pages'