2018-11-23 12:29:20 +00:00
# Must have webform.settings route for config translation which is why there
# is no 'webform.settings.forms' route.
webform.config :
path : '/admin/structure/webform/config'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_form : '\Drupal\webform\Form\AdminConfig\WebformAdminConfigFormsForm'
_title: 'Webforms : Forms configuration'
2017-03-16 15:29:07 +00:00
requirements :
_permission : 'administer webform'
2018-11-23 12:29:20 +00:00
webform.config.elements :
path : '/admin/structure/webform/config/elements'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_form : '\Drupal\webform\Form\AdminConfig\WebformAdminConfigElementsForm'
_title: 'Webforms : Elements configuration'
2017-03-16 15:29:07 +00:00
requirements :
2018-11-23 12:29:20 +00:00
_permission : 'administer webform'
webform.config.submissions :
path : '/admin/structure/webform/config/submissions'
defaults :
_form : '\Drupal\webform\Form\AdminConfig\WebformAdminConfigSubmissionsForm'
_title: 'Webforms : Submissions configuration'
requirements :
_permission : 'administer webform'
webform.config.handlers :
path : '/admin/structure/webform/config/handlers'
defaults :
_form : '\Drupal\webform\Form\AdminConfig\WebformAdminConfigHandlersForm'
_title: 'Webforms : Handlers configuration'
requirements :
_permission : 'administer webform'
webform.config.exporters :
path : '/admin/structure/webform/config/exporters'
defaults :
_form : '\Drupal\webform\Form\AdminConfig\WebformAdminConfigExportersForm'
_title: 'Webforms : Exporters configuration'
requirements :
_permission : 'administer webform'
webform.config.libraries :
path : '/admin/structure/webform/config/libraries'
defaults :
_form : '\Drupal\webform\Form\AdminConfig\WebformAdminConfigLibrariesForm'
_title: 'Webforms : Libraries configuration'
requirements :
_permission : 'administer webform'
2017-03-16 15:29:07 +00:00
2018-11-23 12:29:20 +00:00
webform.config.advanced :
path : '/admin/structure/webform/config/advanced'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_form : '\Drupal\webform\Form\AdminConfig\WebformAdminConfigAdvancedForm'
_title: 'Webforms : Advanced configuration'
2017-03-16 15:29:07 +00:00
requirements :
_permission : 'administer webform'
2018-11-23 12:29:20 +00:00
# Add-ons
2017-03-16 15:29:07 +00:00
webform.addons :
path : '/admin/structure/webform/addons'
defaults :
_controller : '\Drupal\webform\Controller\WebformAddonsController::index'
2018-11-23 12:29:20 +00:00
_title: 'Webforms : Add-ons'
requirements :
_permission : 'administer webform'
2019-01-24 08:00:03 +00:00
# Help
# webform.help is dynamically added.
# @see \Drupal\webform\Routing\WebformRouteSubscriber
webform.help :
path : '/admin/structure/webform/help'
defaults :
_controller : '\Drupal\webform\Controller\WebformHelpController::index'
requirements :
_permission : 'access content'
webform.help.video :
path : '/admin/help/webform/video/{id}'
defaults :
_form : '\Drupal\webform\Form\WebformHelpVideoForm'
requirements :
_permission : 'access content'
2018-11-23 12:29:20 +00:00
# Contribute
webform.contribute :
path : '/admin/structure/webform/contribute'
defaults :
_controller : '\Drupal\webform\Controller\WebformContributeController::index'
_title: 'Webforms : Contribute'
requirements :
_permission : 'administer webform'
webform.contribute.settings :
path : '/admin/structure/webform/contribute/configure'
defaults :
_form : '\Drupal\webform\Form\WebformContributeForm'
_title : 'Configure Community Information'
requirements :
_permission : 'administer webform'
webform.contribute.autocomplete :
path : '/admin/structure/webform/contribute/autocomplete/{account_type}'
defaults :
_controller : '\Drupal\webform\Controller\WebformContributeController::autocomplete'
2017-03-16 15:29:07 +00:00
requirements :
_permission : 'administer webform'
# Forms
entity.webform.collection :
path : '/admin/structure/webform'
defaults :
_entity_list : 'webform'
_title : 'Webforms'
requirements :
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformAccountAccess::checkOverviewAccess'
2017-03-16 15:29:07 +00:00
entity.webform.autocomplete :
path : '/admin/structure/webform/autocomplete'
defaults :
2018-11-23 12:29:20 +00:00
_controller : '\Drupal\webform\Controller\WebformEntityController::autocomplete'
2017-03-16 15:29:07 +00:00
requirements :
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformAccountAccess::checkOverviewAccess'
entity.webform.autocomplete.archived :
path : '/admin/structure/webform/autocomplete/archived'
defaults :
_controller : '\Drupal\webform\Controller\WebformEntityController::autocomplete'
archived : TRUE
requirements :
_custom_access : '\Drupal\webform\Access\WebformAccountAccess::checkOverviewAccess'
2017-03-16 15:29:07 +00:00
entity.webform.canonical :
path : '/webform/{webform}'
defaults :
2018-11-23 12:29:20 +00:00
_controller : '\Drupal\webform\Controller\WebformEntityController::addForm'
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform.submission_page'
2018-11-23 12:29:20 +00:00
entity.webform.access_denied :
path : '/webform/{webform}/access-denied'
defaults :
_controller : '\Drupal\webform\Controller\WebformEntityController::accessDenied'
_title_callback : '\Drupal\webform\Controller\WebformEntityController::accessDeniedTitle'
requirements :
# Access denied is available to all users.
_access : 'TRUE'
2017-03-16 15:29:07 +00:00
entity.webform.assets.javascript :
2018-11-23 12:29:20 +00:00
path : '/webform/javascript/{webform}'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_controller : '\Drupal\webform\Controller\WebformEntityController::javascript'
2017-03-16 15:29:07 +00:00
requirements :
2018-11-23 12:29:20 +00:00
_entity_access : 'webform.view'
2017-03-16 15:29:07 +00:00
entity.webform.assets.css :
2018-11-23 12:29:20 +00:00
path : '/webform/css/{webform}'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_controller : '\Drupal\webform\Controller\WebformEntityController::css'
2017-03-16 15:29:07 +00:00
requirements :
2018-11-23 12:29:20 +00:00
_entity_access : 'webform.view'
2017-03-16 15:29:07 +00:00
entity.webform.confirmation :
path : '/webform/{webform}/confirmation'
defaults :
2018-11-23 12:29:20 +00:00
_controller : '\Drupal\webform\Controller\WebformEntityController::confirmation'
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
requirements :
2018-11-23 12:29:20 +00:00
_entity_access : 'webform.view'
2017-03-16 15:29:07 +00:00
entity.webform.user.submissions :
2018-11-23 12:29:20 +00:00
path : '/webform/{webform}/submissions/{submission_view}'
2017-03-16 15:29:07 +00:00
defaults :
_entity_list : 'webform_submission'
_title : 'Submissions'
2018-11-23 12:29:20 +00:00
submission_view : ''
2017-03-16 15:29:07 +00:00
options :
parameters :
webform :
type : 'entity:webform'
requirements :
_entity_access : 'webform.submission_view_own'
2018-11-23 12:29:20 +00:00
entity.webform.user.drafts :
path : '/webform/{webform}/drafts/{submission_view}'
defaults :
_entity_list : 'webform_submission'
_title : 'Drafts'
submission_view : ''
options :
parameters :
webform :
type : 'entity:webform'
requirements :
_entity_access : 'webform.submission_create'
2017-03-16 15:29:07 +00:00
entity.webform.user.submission :
path : '/webform/{webform}/submissions/{webform_submission}'
defaults :
2018-11-23 12:29:20 +00:00
_controller : '\Drupal\webform\Controller\WebformSubmissionViewController::view'
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
view_mode : 'html'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform_submission.view'
entity.webform.user.submission.edit :
path : '/webform/{webform}/submissions/{webform_submission}/edit'
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform_submission.edit'
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
requirements :
_entity_access : 'webform_submission.update'
entity.webform.user.submission.delete :
path : '/webform/{webform}/submissions/{webform_submission}/delete'
defaults :
_entity_form : 'webform_submission.delete'
_title : 'Delete webform submission'
requirements :
_entity_access : 'webform_submission.delete'
entity.webform.user.submission.duplicate :
path : '/webform/{webform}/submissions/{webform_submission}/duplicate'
defaults :
_entity_form : 'webform_submission.duplicate'
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
duplicate : TRUE
setting : 'submission_user_duplicate'
value : TRUE
options :
parameters :
webform :
type : 'entity:webform'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform_submission.update'
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformEntityAccess::checkWebformSettingValue'
2017-03-16 15:29:07 +00:00
2018-11-23 12:29:20 +00:00
entity.webform.test_form :
2017-03-16 15:29:07 +00:00
path : '/webform/{webform}/test'
defaults :
_controller : '\Drupal\webform\Controller\WebformTestController::testForm'
_title_callback : '\Drupal\webform\Controller\WebformTestController::title'
options :
parameters :
webform :
type : 'entity:webform'
requirements :
2018-11-23 12:29:20 +00:00
_entity_access : 'webform.test'
entity.webform.export_form :
path : '/admin/structure/webform/manage/{webform}/export'
defaults :
_entity_form : 'webform.export'
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
requirements :
_permission : 'export configuration'
2017-03-16 15:29:07 +00:00
entity.webform.add_form :
path : '/admin/structure/webform/add'
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform.add'
2017-03-16 15:29:07 +00:00
_title : 'Add webform'
requirements :
_entity_create_access : 'webform'
entity.webform.edit_form :
path : '/admin/structure/webform/manage/{webform}'
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform.edit'
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform.update'
2018-11-23 12:29:20 +00:00
entity.webform.duplicate_form :
path : '/admin/structure/webform/manage/{webform}/duplicate'
defaults :
_entity_form : 'webform.duplicate'
_title : 'Duplicate webform'
requirements :
_entity_access : 'webform.duplicate'
entity.webform.delete_form :
path : '/admin/structure/webform/manage/{webform}/delete'
defaults :
_entity_form : 'webform.delete'
_title : 'Delete webform'
requirements :
_entity_access : 'webform.delete'
# Webform settings.
entity.webform.settings :
2017-03-16 15:29:07 +00:00
path : '/admin/structure/webform/manage/{webform}/settings'
defaults :
_entity_form : 'webform.settings'
2018-11-23 12:29:20 +00:00
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform.update'
2018-11-23 12:29:20 +00:00
entity.webform.settings_form :
path : '/admin/structure/webform/manage/{webform}/settings/form'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform.settings_form'
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform.update'
2018-11-23 12:29:20 +00:00
entity.webform.settings_submissions :
path : '/admin/structure/webform/manage/{webform}/settings/submissions'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform.settings_submissions'
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform.update'
2018-11-23 12:29:20 +00:00
entity.webform.settings_confirmation :
path : '/admin/structure/webform/manage/{webform}/settings/confirmation'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform.settings_confirmation'
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform.update'
2018-11-23 12:29:20 +00:00
entity.webform.settings_assets :
path : '/admin/structure/webform/manage/{webform}/settings/assets'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform.settings_assets'
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
requirements :
2018-11-23 12:29:20 +00:00
_entity_access : 'webform.update'
_permission : 'edit webform assets'
2017-03-16 15:29:07 +00:00
2018-11-23 12:29:20 +00:00
entity.webform.settings_access :
path : '/admin/structure/webform/manage/{webform}/access'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform.settings_access'
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
requirements :
2018-11-23 12:29:20 +00:00
_entity_access : 'webform.update'
2017-03-16 15:29:07 +00:00
# Webform submission results
entity.webform.results_submissions :
2018-11-23 12:29:20 +00:00
path : '/admin/structure/webform/manage/{webform}/results/submissions/{submission_view}'
2017-03-16 15:29:07 +00:00
defaults :
_entity_list : 'webform_submission'
2018-11-23 12:29:20 +00:00
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
submission_view : ''
2017-03-16 15:29:07 +00:00
options :
parameters :
webform :
type : 'entity:webform'
requirements :
_entity_access : 'webform.submission_view_any'
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
2017-03-16 15:29:07 +00:00
2018-11-23 12:29:20 +00:00
entity.webform.results.source_entity.autocomplete :
path : '/admin/structure/webform/manage/{webform}/results/source-entity/autocomplete'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_controller : '\Drupal\webform\Controller\WebformSubmissionsController::sourceEntityAutocomplete'
2017-03-16 15:29:07 +00:00
options :
parameters :
webform :
type : 'entity:webform'
requirements :
_entity_access : 'webform.submission_view_any'
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
2017-03-16 15:29:07 +00:00
2018-11-23 12:29:20 +00:00
entity.webform.results_submissions.custom :
path : '/admin/structure/webform/manage/{webform}/results/submissions/custom'
2017-03-16 15:29:07 +00:00
defaults :
_form : 'Drupal\webform\Form\WebformResultsCustomForm'
_title : 'Customize table'
options :
parameters :
webform :
type : 'entity:webform'
requirements :
2018-11-23 12:29:20 +00:00
_entity_access : 'webform.update'
_custom_access : '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
2017-03-16 15:29:07 +00:00
entity.webform.results_export :
path : '/admin/structure/webform/manage/{webform}/results/download'
defaults :
_controller : '\Drupal\webform\Controller\WebformResultsExportController::index'
2018-11-23 12:29:20 +00:00
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
options :
parameters :
webform :
type : 'entity:webform'
requirements :
_entity_access : 'webform.submission_view_any'
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
2017-03-16 15:29:07 +00:00
entity.webform.results_export_file :
path : '/admin/structure/webform/manage/{webform}/results/download/file/{filename}'
defaults :
_controller : '\Drupal\webform\Controller\WebformResultsExportController::file'
2018-11-23 12:29:20 +00:00
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
options :
parameters :
webform :
type : 'entity:webform'
requirements :
_entity_access : 'webform.submission_view_any'
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
2017-03-16 15:29:07 +00:00
entity.webform.results_clear :
path : '/admin/structure/webform/manage/{webform}/results/clear'
defaults :
_form : 'Drupal\webform\Form\WebformResultsClearForm'
2018-11-23 12:29:20 +00:00
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
options :
parameters :
webform :
type : 'entity:webform'
requirements :
_entity_access : 'webform.submission_purge_any'
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
2017-03-16 15:29:07 +00:00
# Webform options
entity.webform_options.collection :
2018-11-23 12:29:20 +00:00
path : '/admin/structure/webform/config/options/manage'
2017-03-16 15:29:07 +00:00
defaults :
_entity_list : 'webform_options'
_title: 'Webforms : Options'
requirements :
_permission : 'administer webform'
2019-01-24 08:00:03 +00:00
entity.webform_options.autocomplete :
path : '/admin/structure/webform/config/options/autocomplete'
defaults :
_controller : '\Drupal\webform\Controller\WebformOptionsController::autocomplete'
requirements :
_permission : 'administer webform'
2017-03-16 15:29:07 +00:00
entity.webform_options.add_form :
2018-11-23 12:29:20 +00:00
path : '/admin/structure/webform/config/options/manage/add'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform_options.add'
2017-03-16 15:29:07 +00:00
_title : 'Add webform options'
requirements :
_entity_create_access : 'webform_options'
entity.webform_options.edit_form :
2018-11-23 12:29:20 +00:00
path : '/admin/structure/webform/config/options/manage/{webform_options}/edit'
2017-03-16 15:29:07 +00:00
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform_options.edit'
_title : 'Edit webform options'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform_options.update'
2018-11-23 12:29:20 +00:00
entity.webform_options.duplicate_form :
path : '/admin/structure/webform/config/options/{webform_options}/duplicate'
defaults :
_entity_form : 'webform_options.duplicate'
_title : 'Duplicate webform options'
requirements :
_entity_access : 'webform_options.duplicate'
2017-03-16 15:29:07 +00:00
entity.webform_options.delete_form :
2018-11-23 12:29:20 +00:00
path : '/admin/structure/webform/config/options/{webform_options}/delete'
2017-03-16 15:29:07 +00:00
defaults :
_entity_form : 'webform_options.delete'
_title : 'Delete webform options'
requirements :
_entity_access : 'webform_options.delete'
# Webform results (submissions)
entity.webform_submission.collection :
2018-11-23 12:29:20 +00:00
path : '/admin/structure/webform/submissions/manage/{submission_view}'
2017-03-16 15:29:07 +00:00
defaults :
_entity_list : 'webform_submission'
2018-11-23 12:29:20 +00:00
_title: 'Webforms : Submissions'
submission_view : ''
2017-03-16 15:29:07 +00:00
requirements :
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformAccountAccess:checkSubmissionAccess'
2017-03-16 15:29:07 +00:00
2018-11-23 12:29:20 +00:00
entity.webform_submission.collection_purge :
path : '/admin/structure/webform/submissions/purge'
2017-03-16 15:29:07 +00:00
defaults :
_form : 'Drupal\webform\Form\WebformSubmissionsPurgeForm'
2018-11-23 12:29:20 +00:00
_title: 'Webforms : Submissions purge'
2017-03-16 15:29:07 +00:00
requirements :
_permission : 'administer webform'
2018-11-23 12:29:20 +00:00
# Webform user (submissions)
entity.webform_submission.user :
path : '/user/{user}/submissions/{submission_view}'
defaults :
_entity_list : 'webform_submission'
_title : 'Submissions'
submission_view : ''
requirements :
_custom_access : '\Drupal\webform\Access\WebformAccountAccess::checkUserSubmissionsAccess'
options :
parameters :
user :
type : entity:user
2017-03-16 15:29:07 +00:00
# Webform submissions
entity.webform_submission.canonical :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}'
defaults :
2018-11-23 12:29:20 +00:00
_controller : '\Drupal\webform\Controller\WebformSubmissionViewController::view'
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
view_mode : 'html'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform_submission.view'
2018-11-23 12:29:20 +00:00
entity.webform_submission.access_denied :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/access-denied'
defaults :
_controller : '\Drupal\webform\Controller\WebformSubmissionController::accessDenied'
_title_callback : '\Drupal\webform\Controller\WebformSubmissionController::accessDeniedTitle'
requirements :
# Access denied is available to all users.
_access : 'TRUE'
2017-03-16 15:29:07 +00:00
entity.webform_submission.table :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/table'
defaults :
2018-11-23 12:29:20 +00:00
_controller : '\Drupal\webform\Controller\WebformSubmissionViewController::view'
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
view_mode : 'table'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform_submission.view'
entity.webform_submission.text :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/text'
defaults :
2018-11-23 12:29:20 +00:00
_controller : '\Drupal\webform\Controller\WebformSubmissionViewController::view'
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
view_mode : 'text'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform_submission.view_any'
entity.webform_submission.yaml :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/yaml'
defaults :
2018-11-23 12:29:20 +00:00
_controller : '\Drupal\webform\Controller\WebformSubmissionViewController::view'
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
view_mode : 'yaml'
2017-03-16 15:29:07 +00:00
requirements :
2019-01-24 08:00:03 +00:00
_permission : 'edit webform source'
2017-03-16 15:29:07 +00:00
_entity_access : 'webform_submission.view_any'
entity.webform_submission.edit_form :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/edit'
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform_submission.edit'
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform_submission.update'
entity.webform_submission.edit_form.all :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/edit/all'
defaults :
2018-11-23 12:29:20 +00:00
_entity_form : 'webform_submission.edit_all'
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform_submission.update'
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformSubmissionAccess::checkWizardPagesAccess'
2017-03-16 15:29:07 +00:00
entity.webform_submission.notes_form :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/notes'
defaults :
_entity_form : 'webform_submission.notes'
2018-11-23 12:29:20 +00:00
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
2017-03-16 15:29:07 +00:00
requirements :
2018-11-23 12:29:20 +00:00
_entity_access : 'webform_submission.notes'
2017-03-16 15:29:07 +00:00
entity.webform_submission.resend_form :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/resend'
defaults :
_form : 'Drupal\webform\Form\WebformSubmissionResendForm'
2018-11-23 12:29:20 +00:00
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
2017-03-16 15:29:07 +00:00
requirements :
2018-11-23 12:29:20 +00:00
_entity_access : 'webform_submission.update_any'
_custom_access : '\Drupal\webform\Access\WebformSubmissionAccess::checkResendAccess'
2017-03-16 15:29:07 +00:00
entity.webform_submission.duplicate_form :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/duplicate'
defaults :
_entity_form : 'webform_submission.duplicate'
2018-11-23 12:29:20 +00:00
_title_callback : '\Drupal\webform\Controller\WebformSubmissionViewController::title'
2017-03-16 15:29:07 +00:00
duplicate : TRUE
requirements :
_entity_access : 'webform_submission.update_any'
entity.webform_submission.delete_form :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/delete'
defaults :
_entity_form : 'webform_submission.delete'
_title : 'Delete webform submission'
requirements :
_entity_access : 'webform_submission.delete'
2018-11-23 12:29:20 +00:00
entity.webform_submission.locked_toggle :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/locked'
defaults :
_controller : '\Drupal\webform\Controller\WebformSubmissionController::locked'
requirements :
_entity_access : 'webform_submission.update'
_csrf_token : 'TRUE'
2017-03-16 15:29:07 +00:00
entity.webform_submission.sticky_toggle :
path : '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/sticky'
defaults :
_controller : '\Drupal\webform\Controller\WebformSubmissionController::sticky'
requirements :
_entity_access : 'webform_submission.update'
_csrf_token : 'TRUE'
webform_submission.multiple_delete_confirm :
path : '/admin/structure/webform/results/delete'
defaults :
_form : '\Drupal\webform\Form\WebformSubmissionDeleteMultiple'
requirements :
_permission : 'administer webform submission'
2018-11-23 12:29:20 +00:00
# Handlers.
2017-03-16 15:29:07 +00:00
2018-11-23 12:29:20 +00:00
entity.webform.handlers :
2017-03-16 15:29:07 +00:00
path : '/admin/structure/webform/manage/{webform}/handlers'
defaults :
_entity_form : 'webform.handlers'
2018-11-23 12:29:20 +00:00
_title_callback : '\Drupal\webform\Controller\WebformEntityController::title'
2017-03-16 15:29:07 +00:00
requirements :
_entity_access : 'webform.update'
2018-11-23 12:29:20 +00:00
entity.webform.handler :
2017-03-16 15:29:07 +00:00
path : '/admin/structure/webform/manage/{webform}/handlers/add'
defaults :
_controller : '\Drupal\webform\Controller\WebformPluginHandlerController::listHandlers'
_title : 'Select a handler'
requirements :
_entity_access : 'webform.update'
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformHandlerAccess::checkHandlerAccess'
2017-03-16 15:29:07 +00:00
entity.webform.handler.add_form :
path : '/admin/structure/webform/manage/{webform}/handlers/add/{webform_handler}'
defaults :
_form : '\Drupal\webform\Form\WebformHandlerAddForm'
_title : 'Add webform handler'
requirements :
_entity_access : 'webform.update'
2018-11-23 12:29:20 +00:00
_custom_access : '\Drupal\webform\Access\WebformHandlerAccess::checkHandlerAccess'
entity.webform.handler.add_email :
path : '/admin/structure/webform/manage/{webform}/handlers/add/email'
defaults :
_form : '\Drupal\webform\Form\WebformHandlerAddForm'
_title : 'Add email'
webform_handler : email
requirements :
_entity_access : 'webform.update'
_custom_access : '\Drupal\webform\Access\WebformHandlerAccess::checkHandlerAccess'
2017-03-16 15:29:07 +00:00
entity.webform.handler.edit_form :
path : '/admin/structure/webform/manage/{webform}/handlers/{webform_handler}/edit'
defaults :
_form : '\Drupal\webform\Form\WebformHandlerEditForm'
_title : 'Edit webform handler'
requirements :
_entity_access : 'webform.update'
entity.webform.handler.duplicate_form :
path : '/admin/structure/webform/manage/{webform}/handlers/{webform_handler}/duplicate'
defaults :
_form : '\Drupal\webform\Form\WebformHandlerDuplicateForm'
_title : 'Duplicate webform handler'
requirements :
_entity_access : 'webform.update'
entity.webform.handler.delete_form :
path : '/admin/structure/webform/manage/{webform}/handlers/{webform_handler}/delete'
defaults :
_form : '\Drupal\webform\Form\WebformHandlerDeleteForm'
_title : 'Delete webform handler'
requirements :
_entity_access : 'webform.update'
2018-11-23 12:29:20 +00:00
entity.webform.handler.enable :
path : '/admin/structure/webform/manage/{webform}/handlers/{webform_handler}/enable'
defaults :
_controller : '\Drupal\webform\WebformEntityHandlersForm::ajaxOperation'
op : enable
requirements :
_entity_access : 'webform.update'
_csrf_token : 'TRUE'
2017-03-16 15:29:07 +00:00
2018-11-23 12:29:20 +00:00
entity.webform.handler.disable :
path : '/admin/structure/webform/manage/{webform}/handlers/{webform_handler}/disable'
defaults :
_controller : '\Drupal\webform\WebformEntityHandlersForm::ajaxOperation'
op : disable
requirements :
_entity_access : 'webform.update'
_csrf_token : 'TRUE'
# Plugins.
webform.reports_plugins.elements :
path : '/admin/reports/webform-plugins/elements'
2017-03-16 15:29:07 +00:00
defaults :
_controller : '\Drupal\webform\Controller\WebformPluginElementController::index'
2018-11-23 12:29:20 +00:00
_title: 'Webform plugins : Elements'
2017-03-16 15:29:07 +00:00
requirements :
_permission : 'administer webform'
2018-11-23 12:29:20 +00:00
webform.reports_plugins.handlers :
path : '/admin/reports/webform-plugins/handlers'
defaults :
_controller : '\Drupal\webform\Controller\WebformPluginHandlerController::index'
_title: 'Webform plugins : Handlers'
requirements :
_permission : 'administer webform'
2017-03-16 15:29:07 +00:00
2018-11-23 12:29:20 +00:00
webform.reports_plugins.exporters :
path : '/admin/reports/webform-plugins/exporters'
2017-03-16 15:29:07 +00:00
defaults :
_controller : '\Drupal\webform\Controller\WebformPluginExporterController::index'
2018-11-23 12:29:20 +00:00
_title: 'Webform plugins : Exporters'
2017-03-16 15:29:07 +00:00
requirements :
_permission : 'administer webform'
2018-11-23 12:29:20 +00:00
# Autocomplete.
2017-03-16 15:29:07 +00:00
webform.element.autocomplete :
path : '/webform/{webform}/autocomplete/{key}'
defaults :
_controller : '\Drupal\webform\Controller\WebformElementController::autocomplete'
options :
parameters :
webform :
type : 'entity:webform'
requirements :
_entity_access : 'webform.submission_page'
2018-11-23 12:29:20 +00:00
# Message.
2017-03-16 15:29:07 +00:00
webform.element.message.close :
path : '/webform/message/close/{storage}/{id}'
defaults :
_controller : '\Drupal\webform\Controller\WebformElementController::close'
_storage : user
requirements :
_user_is_logged_in : 'TRUE'
_csrf_token : 'TRUE'