-
Notifications
You must be signed in to change notification settings - Fork 6
/
webform_strawberryfield.routing.yml
82 lines (80 loc) · 2.98 KB
/
webform_strawberryfield.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
webform_strawberryfield.modal_webform:
path: '/webform_strawberry/modal-widget/{webform}'
defaults:
_controller: '\Drupal\webform_strawberryfield\Controller\StrawberryRunnerModalController::openModalForm'
_title: 'Strawberry Webform Widget'
requirements:
_permission: 'access content'
_csrf_token: 'TRUE'
webform_strawberryfield.close_modal_webform:
path: '/webform_strawberry/close-modal-widget'
defaults:
_controller: '\Drupal\webform_strawberryfield\Controller\StrawberryRunnerModalController::closeModalForm'
requirements:
_permission: 'access content'
webform_strawberryfield.auth_autocomplete:
path: '/webform_strawberry/auth_autocomplete/{auth_type}/{vocab}/{rdftype}/{count}'
defaults:
_controller: '\Drupal\webform_strawberryfield\Controller\AuthAutocompleteController::handleAutocomplete'
_format: json
vocab: subjects
count: 1
rdftype: thing
requirements:
_access: 'TRUE'
webform_strawberryfield.nominatim:
path: '/webform_strawberry/nominatim/{api_type}/{lang}/{count}'
defaults:
_controller: '\Drupal\webform_strawberryfield\Controller\NominatimController::handleRequest'
_format: json
count: 1
requirements:
_permission: 'access content'
_csrf_token: 'TRUE'
count: '\d+'
# Adds a 'Create Node from' Submission
# This allows normal Webform Submissions to become fully qualified ADOs
webform_strawberryfield.webform_submission.ingestentities_form:
path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/makeado'
parameters:
webform:
type: 'entity:webform'
webform_submission:
type: 'entity:webform_submission'
defaults:
_form: '\Drupal\webform_strawberryfield\Form\WebformSubmissionToADO'
_title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
requirements:
_entity_access: 'webform_submission.update'
_custom_access: '\Drupal\webform_strawberryfield\Access\WebformStrawberryfieldHandlerAccess::checkIngestEntityAccess'
webform_strawberryfield.element.autocomplete:
path: '/webform_strawberry/webformoptions_autocomplete/{webform}/{key}'
defaults:
_controller: '\Drupal\webform_strawberryfield\Controller\WebformOptionsAutocompleteController::autocomplete'
options:
parameters:
webform:
type: 'entity:webform'
requirements:
_entity_access: 'webform.submission_create'
webform_strawberryfield.rowsbylabel.autocomplete:
path: '/webform_strawberry/csv_autocomplete/{node}/{label_header}/{url_header}/{match}/{limit}/{min}/{desc_headers}'
options:
parameters:
node:
type: 'entity:node'
resource_type:
type: 'ado'
defaults:
label_header: 'label'
url_header: 'url'
match: 'STARTS_WITH'
limit: 10
min: 2
desc_headers: ''
_controller: '\Drupal\webform_strawberryfield\Controller\RowAutocompleteController::handleAutocomplete'
_format: json
requirements:
_entity_access: 'node.view'
_permission: 'access content'
_csrf_token: 'TRUE'