forked from esmero/webform_strawberryfield
-
Notifications
You must be signed in to change notification settings - Fork 1
/
webform_strawberryfield.routing.yml
49 lines (49 loc) · 1.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
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'