-
Notifications
You must be signed in to change notification settings - Fork 0
/
paragraphs_editor.routing.yml
74 lines (69 loc) · 2.52 KB
/
paragraphs_editor.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
paragraphs_editor.command.insert:
path: '/ajax/paragraphs-editor/insert/{context}/{bundle_name}'
defaults:
_controller: '\Drupal\paragraphs_editor\Controller\EditorCommandController::insert'
bundle_name: false
options:
parameters:
context:
type: paragraphs_editor_command_context
command: insert
requirements:
_paragraphs_editor_access_context: '{context}'
_entity_create_access: 'paragraph:{bundle_name}'
paragraphs_editor.command.edit:
path: '/ajax/paragraphs-editor/edit/{context}/{paragraph_uuid}'
defaults:
_controller: '\Drupal\paragraphs_editor\Controller\EditorCommandController::edit'
options:
parameters:
context:
type: paragraphs_editor_command_context
command: edit
requirements:
_paragraphs_editor_access_context: '{context}'
_paragraphs_editor_access_paragraph: '{context}:{paragraph_uuid}'
paragraphs_editor.command.render:
path: '/ajax/paragraphs-editor/render/{context}/{paragraph_uuid}'
defaults:
_controller: '\Drupal\paragraphs_editor\Controller\EditorCommandController::render'
options:
parameters:
context:
type: paragraphs_editor_command_context
command: render
requirements:
_paragraphs_editor_access_context: '{context}'
_paragraphs_editor_access_paragraph: '{context}:{paragraph_uuid}'
paragraphs_editor.command.duplicate:
path: '/ajax/paragraphs-editor/duplicate/{target_context}/{source_context}/{paragraph_uuid}/{editor_widget_id}'
defaults:
_controller: '\Drupal\paragraphs_editor\Controller\EditorCommandController::duplicate'
options:
parameters:
source_context:
type: paragraphs_editor_command_context
command: duplicate
target_context:
type: paragraphs_editor_command_context
command: duplicate
requirements:
_paragraphs_editor_access_context: '{target_context}+{source_context}'
_paragraphs_editor_access_paragraph: '{source_context}:{paragraph_uuid}'
paragraphs_editor.command.cancel:
path: '/ajax/paragraphs-editor/cancel/{context}'
defaults:
_controller: '\Drupal\paragraphs_editor\Controller\EditorCommandController::cancel'
options:
parameters:
context:
type: paragraphs_editor_command_context
command: cancel
requirements:
_paragraphs_editor_access_context: '{context}'
paragraphs_editor.schema:
path: '/ajax/paragraphs-editor/schema/{field_config}'
defaults:
_controller: '\Drupal\paragraphs_editor\Controller\SchemaController::get'
requirements:
_access: 'TRUE'