You are here

webform.routing.yml in Webform 6.x

Same filename and directory in other branches
  1. 8.5 webform.routing.yml

File

webform.routing.yml
View source
  1. # Must have webform.settings route for config translation which is why there
  2. # is no 'webform.settings.forms' route.
  3. webform.config:
  4. path: '/admin/structure/webform/config'
  5. defaults:
  6. _form: '\Drupal\webform\Form\AdminConfig\WebformAdminConfigFormsForm'
  7. _title: 'Webforms: Forms configuration'
  8. requirements:
  9. _permission: 'administer webform'
  10. webform.config.elements:
  11. path: '/admin/structure/webform/config/elements'
  12. defaults:
  13. _form: '\Drupal\webform\Form\AdminConfig\WebformAdminConfigElementsForm'
  14. _title: 'Webforms: Elements configuration'
  15. requirements:
  16. _permission: 'administer webform'
  17. webform.config.submissions:
  18. path: '/admin/structure/webform/config/submissions'
  19. defaults:
  20. _form: '\Drupal\webform\Form\AdminConfig\WebformAdminConfigSubmissionsForm'
  21. _title: 'Webforms: Submissions configuration'
  22. requirements:
  23. _permission: 'administer webform'
  24. webform.config.handlers:
  25. path: '/admin/structure/webform/config/handlers'
  26. defaults:
  27. _form: '\Drupal\webform\Form\AdminConfig\WebformAdminConfigHandlersForm'
  28. _title: 'Webforms: Handlers configuration'
  29. requirements:
  30. _permission: 'administer webform'
  31. webform.config.variants:
  32. path: '/admin/structure/webform/config/variants'
  33. defaults:
  34. _form: '\Drupal\webform\Form\AdminConfig\WebformAdminConfigVariantsForm'
  35. _title: 'Webforms: Variants configuration'
  36. requirements:
  37. _permission: 'administer webform'
  38. webform.config.exporters:
  39. path: '/admin/structure/webform/config/exporters'
  40. defaults:
  41. _form: '\Drupal\webform\Form\AdminConfig\WebformAdminConfigExportersForm'
  42. _title: 'Webforms: Exporters configuration'
  43. requirements:
  44. _permission: 'administer webform'
  45. webform.config.libraries:
  46. path: '/admin/structure/webform/config/libraries'
  47. defaults:
  48. _form: '\Drupal\webform\Form\AdminConfig\WebformAdminConfigLibrariesForm'
  49. _title: 'Webforms: Libraries configuration'
  50. requirements:
  51. _permission: 'administer webform'
  52. webform.config.advanced:
  53. path: '/admin/structure/webform/config/advanced'
  54. defaults:
  55. _form: '\Drupal\webform\Form\AdminConfig\WebformAdminConfigAdvancedForm'
  56. _title: 'Webforms: Advanced configuration'
  57. requirements:
  58. _permission: 'administer webform'
  59. # Add-ons
  60. webform.addons:
  61. path: '/admin/structure/webform/addons'
  62. defaults:
  63. _controller: '\Drupal\webform\Controller\WebformAddonsController::index'
  64. _title: 'Webforms: Add-ons'
  65. requirements:
  66. _permission: 'administer webform'
  67. # Help
  68. webform.help:
  69. path: '/admin/structure/webform/help'
  70. defaults:
  71. _controller: '\Drupal\webform\Controller\WebformHelpController::index'
  72. _title: 'Webforms: Help'
  73. requirements:
  74. _permission: 'access webform help'
  75. webform.help.video:
  76. path: '/admin/help/webform/video/{id}'
  77. defaults:
  78. _form: '\Drupal\webform\Form\WebformHelpVideoForm'
  79. requirements:
  80. _permission: 'access content'
  81. # Forms
  82. entity.webform.collection:
  83. path: '/admin/structure/webform'
  84. defaults:
  85. _entity_list: 'webform'
  86. _title: 'Webforms'
  87. requirements:
  88. _custom_access: '\Drupal\webform\Access\WebformAccountAccess::checkOverviewAccess'
  89. entity.webform.autocomplete:
  90. path: '/admin/structure/webform/autocomplete'
  91. defaults:
  92. _controller: '\Drupal\webform\Controller\WebformEntityController::autocomplete'
  93. requirements:
  94. _custom_access: '\Drupal\webform\Access\WebformAccountAccess::checkOverviewAccess'
  95. entity.webform.autocomplete.archived:
  96. path: '/admin/structure/webform/autocomplete/archived'
  97. defaults:
  98. _controller: '\Drupal\webform\Controller\WebformEntityController::autocomplete'
  99. archived: TRUE
  100. requirements:
  101. _custom_access: '\Drupal\webform\Access\WebformAccountAccess::checkOverviewAccess'
  102. entity.webform.canonical:
  103. path: '/webform/{webform}'
  104. defaults:
  105. _controller: '\Drupal\webform\Controller\WebformEntityController::addForm'
  106. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  107. requirements:
  108. _entity_access: 'webform.submission_page'
  109. entity.webform.access_denied:
  110. path: '/webform/{webform}/access-denied'
  111. defaults:
  112. _controller: '\Drupal\webform\Controller\WebformEntityController::accessDenied'
  113. _title_callback: '\Drupal\webform\Controller\WebformEntityController::accessDeniedTitle'
  114. requirements:
  115. # Access denied is available to all users.
  116. _access: 'TRUE'
  117. entity.webform.assets.javascript:
  118. path: '/webform/javascript/{webform}'
  119. defaults:
  120. _controller: '\Drupal\webform\Controller\WebformEntityController::javascript'
  121. requirements:
  122. _entity_access: 'webform.view'
  123. entity.webform.assets.css:
  124. path: '/webform/css/{webform}'
  125. defaults:
  126. _controller: '\Drupal\webform\Controller\WebformEntityController::css'
  127. requirements:
  128. _entity_access: 'webform.view'
  129. entity.webform.confirmation:
  130. path: '/webform/{webform}/confirmation'
  131. defaults:
  132. _controller: '\Drupal\webform\Controller\WebformEntityController::confirmation'
  133. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  134. requirements:
  135. _entity_access: 'webform.view'
  136. entity.webform.user.submissions:
  137. path: '/webform/{webform}/submissions/{submission_view}'
  138. defaults:
  139. _entity_list: 'webform_submission'
  140. _title: 'Submissions'
  141. submission_view: ''
  142. options:
  143. parameters:
  144. webform:
  145. type: 'entity:webform'
  146. requirements:
  147. _entity_access: 'webform.submission_view_own'
  148. entity.webform.user.drafts:
  149. path: '/webform/{webform}/drafts/{submission_view}'
  150. defaults:
  151. _entity_list: 'webform_submission'
  152. _title: 'Drafts'
  153. submission_view: ''
  154. options:
  155. parameters:
  156. webform:
  157. type: 'entity:webform'
  158. requirements:
  159. _entity_access: 'webform.submission_create'
  160. _custom_access: '\Drupal\webform\Access\WebformEntityAccess::checkDraftsAccess'
  161. entity.webform.user.submission:
  162. path: '/webform/{webform}/submissions/{webform_submission}'
  163. defaults:
  164. _controller: '\Drupal\webform\Controller\WebformSubmissionViewController::view'
  165. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  166. view_mode: 'html'
  167. requirements:
  168. _entity_access: 'webform_submission.view'
  169. entity.webform.user.submission.edit:
  170. path: '/webform/{webform}/submissions/{webform_submission}/edit'
  171. defaults:
  172. _entity_form: 'webform_submission.edit'
  173. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  174. requirements:
  175. _entity_access: 'webform_submission.update'
  176. entity.webform.user.submission.delete:
  177. path: '/webform/{webform}/submissions/{webform_submission}/delete'
  178. defaults:
  179. _entity_form: 'webform_submission.delete'
  180. _title: 'Delete webform submission'
  181. requirements:
  182. _entity_access: 'webform_submission.delete'
  183. entity.webform.user.submission.duplicate:
  184. path: '/webform/{webform}/submissions/{webform_submission}/duplicate'
  185. defaults:
  186. _entity_form: 'webform_submission.duplicate'
  187. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  188. duplicate: TRUE
  189. setting: 'submission_user_duplicate'
  190. value: TRUE
  191. options:
  192. parameters:
  193. webform:
  194. type: 'entity:webform'
  195. requirements:
  196. _entity_access: 'webform_submission.duplicate'
  197. _custom_access: '\Drupal\webform\Access\WebformEntityAccess::checkWebformSettingValue'
  198. entity.webform.test_form:
  199. path: '/webform/{webform}/test'
  200. defaults:
  201. _controller: '\Drupal\webform\Controller\WebformTestController::testForm'
  202. _title_callback: '\Drupal\webform\Controller\WebformTestController::title'
  203. options:
  204. parameters:
  205. webform:
  206. type: 'entity:webform'
  207. requirements:
  208. _entity_access: 'webform.test'
  209. entity.webform.export_form:
  210. path: '/admin/structure/webform/manage/{webform}/export'
  211. defaults:
  212. _entity_form: 'webform.export'
  213. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  214. requirements:
  215. _permission: 'export configuration'
  216. entity.webform.add_form:
  217. path: '/admin/structure/webform/add'
  218. defaults:
  219. _entity_form: 'webform.add'
  220. _title: 'Add webform'
  221. requirements:
  222. _entity_create_access: 'webform'
  223. entity.webform.edit_form:
  224. path: '/admin/structure/webform/manage/{webform}'
  225. defaults:
  226. _entity_form: 'webform.edit'
  227. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  228. requirements:
  229. _entity_access: 'webform.update'
  230. entity.webform.duplicate_form:
  231. path: '/admin/structure/webform/manage/{webform}/duplicate'
  232. defaults:
  233. _entity_form: 'webform.duplicate'
  234. _title: 'Duplicate webform'
  235. requirements:
  236. _entity_access: 'webform.duplicate'
  237. entity.webform.delete_form:
  238. path: '/admin/structure/webform/manage/{webform}/delete'
  239. defaults:
  240. _entity_form: 'webform.delete'
  241. _title: 'Delete webform'
  242. requirements:
  243. _entity_access: 'webform.delete'
  244. entity.webform.multiple_delete_confirm:
  245. path: '/admin/structure/webform/delete'
  246. defaults:
  247. _form: '\Drupal\webform\Form\WebformEntityDeleteMultipleForm'
  248. entity_type_id: webform
  249. requirements:
  250. _entity_delete_multiple_access: 'webform'
  251. # Webform settings.
  252. entity.webform.settings:
  253. path: '/admin/structure/webform/manage/{webform}/settings'
  254. defaults:
  255. _entity_form: 'webform.settings'
  256. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  257. requirements:
  258. _entity_access: 'webform.update'
  259. entity.webform.settings_form:
  260. path: '/admin/structure/webform/manage/{webform}/settings/form'
  261. defaults:
  262. _entity_form: 'webform.settings_form'
  263. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  264. requirements:
  265. _entity_access: 'webform.update'
  266. entity.webform.settings_submissions:
  267. path: '/admin/structure/webform/manage/{webform}/settings/submissions'
  268. defaults:
  269. _entity_form: 'webform.settings_submissions'
  270. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  271. requirements:
  272. _entity_access: 'webform.update'
  273. entity.webform.settings_confirmation:
  274. path: '/admin/structure/webform/manage/{webform}/settings/confirmation'
  275. defaults:
  276. _entity_form: 'webform.settings_confirmation'
  277. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  278. requirements:
  279. _entity_access: 'webform.update'
  280. entity.webform.settings_assets:
  281. path: '/admin/structure/webform/manage/{webform}/settings/assets'
  282. defaults:
  283. _entity_form: 'webform.settings_assets'
  284. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  285. requirements:
  286. _permission: 'edit webform assets'
  287. _entity_access: 'webform.update'
  288. entity.webform.settings_access:
  289. path: '/admin/structure/webform/manage/{webform}/access'
  290. defaults:
  291. _entity_form: 'webform.settings_access'
  292. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  293. requirements:
  294. _entity_access: 'webform.update'
  295. # Webform submission results
  296. entity.webform.results_submissions:
  297. path: '/admin/structure/webform/manage/{webform}/results/submissions/{submission_view}'
  298. defaults:
  299. _entity_list: 'webform_submission'
  300. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  301. submission_view: ''
  302. options:
  303. parameters:
  304. webform:
  305. type: 'entity:webform'
  306. requirements:
  307. _entity_access: 'webform.submission_view_any'
  308. _custom_access: '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
  309. entity.webform.results.source_entity.autocomplete:
  310. path: '/admin/structure/webform/manage/{webform}/results/source-entity/autocomplete'
  311. defaults:
  312. _controller: '\Drupal\webform\Controller\WebformSubmissionsController::sourceEntityAutocomplete'
  313. options:
  314. parameters:
  315. webform:
  316. type: 'entity:webform'
  317. requirements:
  318. _entity_access: 'webform.submission_view_any'
  319. _custom_access: '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
  320. entity.webform.results_submissions.custom:
  321. path: '/admin/structure/webform/manage/{webform}/results/submissions/custom'
  322. defaults:
  323. _form: 'Drupal\webform\Form\WebformResultsCustomForm'
  324. _title: 'Customize table'
  325. options:
  326. parameters:
  327. webform:
  328. type: 'entity:webform'
  329. requirements:
  330. _entity_access: 'webform.update'
  331. _custom_access: '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
  332. entity.webform.results_submissions.custom.user:
  333. path: '/admin/structure/webform/manage/{webform}/results/submissions/custom/user'
  334. defaults:
  335. _form: 'Drupal\webform\Form\WebformResultsCustomForm'
  336. _title: 'Customize my table'
  337. type: 'user'
  338. options:
  339. parameters:
  340. webform:
  341. type: 'entity:webform'
  342. requirements:
  343. _entity_access: 'webform.submission_view_any'
  344. _custom_access: '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
  345. entity.webform.results_export:
  346. path: '/admin/structure/webform/manage/{webform}/results/download'
  347. defaults:
  348. _controller: '\Drupal\webform\Controller\WebformResultsExportController::index'
  349. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  350. options:
  351. parameters:
  352. webform:
  353. type: 'entity:webform'
  354. requirements:
  355. _entity_access: 'webform.submission_view_any'
  356. _custom_access: '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
  357. entity.webform.results_export_file:
  358. path: '/admin/structure/webform/manage/{webform}/results/download/file/{filename}'
  359. defaults:
  360. _controller: '\Drupal\webform\Controller\WebformResultsExportController::file'
  361. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  362. options:
  363. parameters:
  364. webform:
  365. type: 'entity:webform'
  366. requirements:
  367. _entity_access: 'webform.submission_view_any'
  368. _custom_access: '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
  369. entity.webform.results_clear:
  370. path: '/admin/structure/webform/manage/{webform}/results/clear'
  371. defaults:
  372. _form: 'Drupal\webform\Form\WebformResultsClearForm'
  373. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  374. options:
  375. parameters:
  376. webform:
  377. type: 'entity:webform'
  378. requirements:
  379. _entity_access: 'webform.submission_purge_any'
  380. _custom_access: '\Drupal\webform\Access\WebformEntityAccess:checkResultsAccess'
  381. # Webform options
  382. entity.webform_options.collection:
  383. path: '/admin/structure/webform/options/manage'
  384. defaults:
  385. _entity_list: 'webform_options'
  386. _title: 'Webforms: Options'
  387. requirements:
  388. _permission: 'administer webform'
  389. entity.webform_options.autocomplete:
  390. path: '/admin/structure/webform/options/autocomplete'
  391. defaults:
  392. _controller: '\Drupal\webform\Controller\WebformOptionsController::autocomplete'
  393. requirements:
  394. _permission: 'administer webform'
  395. entity.webform_options.add_form:
  396. path: '/admin/structure/webform/options/manage/add'
  397. defaults:
  398. _entity_form: 'webform_options.add'
  399. _title: 'Add webform options'
  400. requirements:
  401. _entity_create_access: 'webform_options'
  402. entity.webform_options.edit_form:
  403. path: '/admin/structure/webform/options/manage/{webform_options}/edit'
  404. defaults:
  405. _entity_form: 'webform_options.edit'
  406. _title: 'Edit webform options'
  407. requirements:
  408. _entity_access: 'webform_options.update'
  409. entity.webform_options.duplicate_form:
  410. path: '/admin/structure/webform/options/{webform_options}/duplicate'
  411. defaults:
  412. _entity_form: 'webform_options.duplicate'
  413. _title: 'Duplicate webform options'
  414. requirements:
  415. _entity_access: 'webform_options.duplicate'
  416. entity.webform_options.delete_form:
  417. path: '/admin/structure/webform/options/{webform_options}/delete'
  418. defaults:
  419. _entity_form: 'webform_options.delete'
  420. _title: 'Delete webform options'
  421. requirements:
  422. _entity_access: 'webform_options.delete'
  423. # Webform results (submissions)
  424. entity.webform_submission.collection:
  425. path: '/admin/structure/webform/submissions/manage/{submission_view}'
  426. defaults:
  427. _entity_list: 'webform_submission'
  428. _title: 'Webforms: Submissions'
  429. submission_view: ''
  430. requirements:
  431. _custom_access: '\Drupal\webform\Access\WebformAccountAccess:checkSubmissionAccess'
  432. entity.webform_submission.collection_purge:
  433. path: '/admin/structure/webform/submissions/purge'
  434. defaults:
  435. _form: 'Drupal\webform\Form\WebformSubmissionsPurgeForm'
  436. _title: 'Webforms: Submissions purge'
  437. requirements:
  438. _permission: 'administer webform'
  439. # Webform user (submissions)
  440. entity.webform_submission.user:
  441. path: '/user/{user}/submissions/{submission_view}'
  442. defaults:
  443. _entity_list: 'webform_submission'
  444. _title: 'Submissions'
  445. submission_view: ''
  446. requirements:
  447. _custom_access: '\Drupal\webform\Access\WebformAccountAccess::checkUserSubmissionsAccess'
  448. options:
  449. parameters:
  450. user:
  451. type: entity:user
  452. # Webform submissions
  453. entity.webform_submission.canonical:
  454. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}'
  455. defaults:
  456. _controller: '\Drupal\webform\Controller\WebformSubmissionViewController::view'
  457. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  458. view_mode: 'html'
  459. requirements:
  460. _entity_access: 'webform_submission.view'
  461. entity.webform_submission.access_denied:
  462. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/access-denied'
  463. defaults:
  464. _controller: '\Drupal\webform\Controller\WebformSubmissionController::accessDenied'
  465. _title_callback: '\Drupal\webform\Controller\WebformSubmissionController::accessDeniedTitle'
  466. requirements:
  467. # Access denied is available to all users.
  468. _access: 'TRUE'
  469. entity.webform_submission.table:
  470. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/table'
  471. defaults:
  472. _controller: '\Drupal\webform\Controller\WebformSubmissionViewController::view'
  473. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  474. view_mode: 'table'
  475. requirements:
  476. _entity_access: 'webform_submission.view'
  477. entity.webform_submission.text:
  478. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/text'
  479. defaults:
  480. _controller: '\Drupal\webform\Controller\WebformSubmissionViewController::view'
  481. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  482. view_mode: 'text'
  483. requirements:
  484. _entity_access: 'webform_submission.view_any'
  485. entity.webform_submission.yaml:
  486. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/yaml'
  487. defaults:
  488. _controller: '\Drupal\webform\Controller\WebformSubmissionViewController::view'
  489. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  490. view_mode: 'yaml'
  491. requirements:
  492. _permission: 'edit webform source'
  493. _entity_access: 'webform_submission.view_any'
  494. entity.webform_submission.edit_form:
  495. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/edit'
  496. defaults:
  497. _entity_form: 'webform_submission.edit'
  498. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  499. requirements:
  500. _entity_access: 'webform_submission.update'
  501. entity.webform_submission.edit_form.all:
  502. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/edit/all'
  503. defaults:
  504. _entity_form: 'webform_submission.edit_all'
  505. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  506. requirements:
  507. _entity_access: 'webform_submission.update'
  508. _custom_access: '\Drupal\webform\Access\WebformSubmissionAccess::checkWizardPagesAccess'
  509. entity.webform_submission.notes_form:
  510. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/notes'
  511. defaults:
  512. _entity_form: 'webform_submission.notes'
  513. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  514. requirements:
  515. _entity_access: 'webform_submission.notes'
  516. entity.webform_submission.resend_form:
  517. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/resend'
  518. defaults:
  519. _form: 'Drupal\webform\Form\WebformSubmissionResendForm'
  520. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  521. requirements:
  522. _entity_access: 'webform_submission.resend'
  523. _custom_access: '\Drupal\webform\Access\WebformSubmissionAccess::checkResendAccess'
  524. entity.webform_submission.duplicate_form:
  525. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/duplicate'
  526. defaults:
  527. _entity_form: 'webform_submission.duplicate'
  528. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  529. duplicate: TRUE
  530. requirements:
  531. _entity_access: 'webform_submission.update_any'
  532. entity.webform_submission.delete_form:
  533. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/delete'
  534. defaults:
  535. _entity_form: 'webform_submission.delete'
  536. _title: 'Delete webform submission'
  537. requirements:
  538. _entity_access: 'webform_submission.delete'
  539. entity.webform_submission.locked_toggle:
  540. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/locked'
  541. defaults:
  542. _controller: '\Drupal\webform\Controller\WebformSubmissionController::locked'
  543. requirements:
  544. _entity_access: 'webform_submission.update'
  545. _csrf_token: 'TRUE'
  546. entity.webform_submission.sticky_toggle:
  547. path: '/admin/structure/webform/manage/{webform}/submission/{webform_submission}/sticky'
  548. defaults:
  549. _controller: '\Drupal\webform\Controller\WebformSubmissionController::sticky'
  550. requirements:
  551. _entity_access: 'webform_submission.update'
  552. _csrf_token: 'TRUE'
  553. webform_submission.multiple_delete_confirm:
  554. path: '/admin/structure/webform/results/delete'
  555. defaults:
  556. _form: '\Drupal\webform\Form\WebformSubmissionDeleteMultipleForm'
  557. entity_type_id: webform_submission
  558. requirements:
  559. _entity_delete_multiple_access: 'webform_submission'
  560. # Handlers.
  561. entity.webform.handlers:
  562. path: '/admin/structure/webform/manage/{webform}/handlers'
  563. defaults:
  564. _entity_form: 'webform.handlers'
  565. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  566. requirements:
  567. _entity_access: 'webform.update'
  568. entity.webform.handler:
  569. path: '/admin/structure/webform/manage/{webform}/handlers/add'
  570. defaults:
  571. _controller: '\Drupal\webform\Controller\WebformPluginHandlerController::listHandlers'
  572. _title: 'Select a handler'
  573. requirements:
  574. _entity_access: 'webform.update'
  575. _custom_access: '\Drupal\webform\Access\WebformHandlerAccess::checkHandlerAccess'
  576. entity.webform.handler.add_form:
  577. path: '/admin/structure/webform/manage/{webform}/handlers/add/{webform_handler}'
  578. defaults:
  579. _form: '\Drupal\webform\Form\WebformHandlerAddForm'
  580. _title: 'Add webform handler'
  581. requirements:
  582. _entity_access: 'webform.update'
  583. _custom_access: '\Drupal\webform\Access\WebformHandlerAccess::checkHandlerAccess'
  584. entity.webform.handler.add_email:
  585. path: '/admin/structure/webform/manage/{webform}/handlers/add/email'
  586. defaults:
  587. _form: '\Drupal\webform\Form\WebformHandlerAddForm'
  588. _title: 'Add email'
  589. webform_handler: email
  590. requirements:
  591. _entity_access: 'webform.update'
  592. _custom_access: '\Drupal\webform\Access\WebformHandlerAccess::checkHandlerAccess'
  593. entity.webform.handler.edit_form:
  594. path: '/admin/structure/webform/manage/{webform}/handlers/{webform_handler}/edit'
  595. defaults:
  596. _form: '\Drupal\webform\Form\WebformHandlerEditForm'
  597. _title: 'Edit webform handler'
  598. requirements:
  599. _entity_access: 'webform.update'
  600. entity.webform.handler.duplicate_form:
  601. path: '/admin/structure/webform/manage/{webform}/handlers/{webform_handler}/duplicate'
  602. defaults:
  603. _form: '\Drupal\webform\Form\WebformHandlerDuplicateForm'
  604. _title: 'Duplicate webform handler'
  605. requirements:
  606. _entity_access: 'webform.update'
  607. entity.webform.handler.delete_form:
  608. path: '/admin/structure/webform/manage/{webform}/handlers/{webform_handler}/delete'
  609. defaults:
  610. _form: '\Drupal\webform\Form\WebformHandlerDeleteForm'
  611. _title: 'Delete webform handler'
  612. requirements:
  613. _entity_access: 'webform.update'
  614. entity.webform.handler.enable:
  615. path: '/admin/structure/webform/manage/{webform}/handlers/{webform_handler}/enable'
  616. defaults:
  617. _controller: '\Drupal\webform\WebformEntityHandlersForm::ajaxOperation'
  618. operation: enable
  619. requirements:
  620. _entity_access: 'webform.update'
  621. _csrf_token: 'TRUE'
  622. entity.webform.handler.disable:
  623. path: '/admin/structure/webform/manage/{webform}/handlers/{webform_handler}/disable'
  624. defaults:
  625. _controller: '\Drupal\webform\WebformEntityHandlersForm::ajaxOperation'
  626. operation: disable
  627. requirements:
  628. _entity_access: 'webform.update'
  629. _csrf_token: 'TRUE'
  630. # Variants.
  631. entity.webform.variants:
  632. path: '/admin/structure/webform/manage/{webform}/variants'
  633. defaults:
  634. _entity_form: 'webform.variants'
  635. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  636. requirements:
  637. _permission: 'edit webform variants'
  638. _entity_access: 'webform.update'
  639. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess'
  640. entity.webform.variant:
  641. path: '/admin/structure/webform/manage/{webform}/variants/add'
  642. defaults:
  643. _controller: '\Drupal\webform\Controller\WebformPluginVariantController::listVariants'
  644. _title: 'Select a variant'
  645. requirements:
  646. _permission: 'edit webform variants'
  647. _entity_access: 'webform.update'
  648. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess'
  649. entity.webform.variant.add_form:
  650. path: '/admin/structure/webform/manage/{webform}/variants/add/{webform_variant}'
  651. defaults:
  652. _form: '\Drupal\webform\Form\WebformVariantAddForm'
  653. _title: 'Add webform variant'
  654. requirements:
  655. _permission: 'edit webform variants'
  656. _entity_access: 'webform.update'
  657. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantCreateAccess'
  658. entity.webform.variant.edit_form:
  659. path: '/admin/structure/webform/manage/{webform}/variants/{webform_variant}/edit'
  660. defaults:
  661. _form: '\Drupal\webform\Form\WebformVariantEditForm'
  662. _title: 'Edit webform variant'
  663. requirements:
  664. _permission: 'edit webform variants'
  665. _entity_access: 'webform.update'
  666. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess'
  667. entity.webform.variant.duplicate_form:
  668. path: '/admin/structure/webform/manage/{webform}/variants/{webform_variant}/duplicate'
  669. defaults:
  670. _form: '\Drupal\webform\Form\WebformVariantDuplicateForm'
  671. _title: 'Duplicate webform variant'
  672. requirements:
  673. _permission: 'edit webform variants'
  674. _entity_access: 'webform.update'
  675. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess'
  676. entity.webform.variant.delete_form:
  677. path: '/admin/structure/webform/manage/{webform}/variants/{webform_variant}/delete'
  678. defaults:
  679. _form: '\Drupal\webform\Form\WebformVariantDeleteForm'
  680. _title: 'Delete webform variant'
  681. requirements:
  682. _permission: 'edit webform variants'
  683. _entity_access: 'webform.update'
  684. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess'
  685. entity.webform.variant.enable:
  686. path: '/admin/structure/webform/manage/{webform}/variants/{webform_variant}/enable'
  687. defaults:
  688. _controller: '\Drupal\webform\WebformEntityVariantsForm::ajaxOperation'
  689. operation: enable
  690. requirements:
  691. _permission: 'edit webform variants'
  692. _entity_access: 'webform.update'
  693. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess'
  694. _csrf_token: 'TRUE'
  695. entity.webform.variant.disable:
  696. path: '/admin/structure/webform/manage/{webform}/variants/{webform_variant}/disable'
  697. defaults:
  698. _controller: '\Drupal\webform\WebformEntityVariantsForm::ajaxOperation'
  699. operation: disable
  700. requirements:
  701. _permission: 'edit webform variants'
  702. _entity_access: 'webform.update'
  703. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess'
  704. _csrf_token: 'TRUE'
  705. entity.webform.variant.apply_form:
  706. path: '/admin/structure/webform/manage/{webform}/variants/apply'
  707. defaults:
  708. _form: '\Drupal\webform\Form\WebformVariantApplyForm'
  709. _title: 'Apply webform variant'
  710. requirements:
  711. _permission: 'edit webform variants'
  712. _entity_access: 'webform.update'
  713. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess'
  714. entity.webform.variant.view_form:
  715. path: '/admin/structure/webform/manage/{webform}/variants/view'
  716. defaults:
  717. _form: '\Drupal\webform\Form\WebformVariantViewForm'
  718. _title: 'View webform variants'
  719. operation: 'view'
  720. requirements:
  721. _permission: 'edit webform variants'
  722. _entity_access: 'webform.update'
  723. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess'
  724. entity.webform.variant.test_form:
  725. path: '/admin/structure/webform/manage/{webform}/variants/test'
  726. defaults:
  727. _form: '\Drupal\webform\Form\WebformVariantViewForm'
  728. _title: 'Test webform variants'
  729. operation: 'test'
  730. requirements:
  731. _permission: 'edit webform variants'
  732. _entity_access: 'webform.update'
  733. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess'
  734. entity.webform.variant.share_form:
  735. path: '/admin/structure/webform/manage/{webform}/variants/share'
  736. defaults:
  737. _form: '\Drupal\webform\Form\WebformVariantViewForm'
  738. _title: 'Share webform variants'
  739. operation: 'share'
  740. requirements:
  741. _permission: 'edit webform variants'
  742. _entity_access: 'webform.update'
  743. _custom_access: '\Drupal\webform\Access\WebformVariantAccess::checkVariantSettingsAccess'
  744. # Plugins.
  745. webform.reports_plugins.elements:
  746. path: '/admin/reports/webform-plugins/elements'
  747. defaults:
  748. _controller: '\Drupal\webform\Controller\WebformPluginElementController::index'
  749. _title: 'Webform plugins: Elements'
  750. requirements:
  751. _permission: 'administer webform'
  752. webform.reports_plugins.handlers:
  753. path: '/admin/reports/webform-plugins/handlers'
  754. defaults:
  755. _controller: '\Drupal\webform\Controller\WebformPluginHandlerController::index'
  756. _title: 'Webform plugins: Handlers'
  757. requirements:
  758. _permission: 'administer webform'
  759. webform.reports_plugins.variants:
  760. path: '/admin/reports/webform-plugins/variants'
  761. defaults:
  762. _controller: '\Drupal\webform\Controller\WebformPluginVariantController::index'
  763. _title: 'Webform plugins: Variants'
  764. requirements:
  765. _permission: 'administer webform'
  766. webform.reports_plugins.exporters:
  767. path: '/admin/reports/webform-plugins/exporters'
  768. defaults:
  769. _controller: '\Drupal\webform\Controller\WebformPluginExporterController::index'
  770. _title: 'Webform plugins: Exporters'
  771. requirements:
  772. _permission: 'administer webform'
  773. # Autocomplete.
  774. webform.element.autocomplete:
  775. path: '/webform/{webform}/autocomplete/{key}'
  776. defaults:
  777. _controller: '\Drupal\webform\Controller\WebformElementController::autocomplete'
  778. options:
  779. parameters:
  780. webform:
  781. type: 'entity:webform'
  782. requirements:
  783. _entity_access: 'webform.submission_page'
  784. # Message.
  785. webform.element.message.close:
  786. path: '/webform/message/close/{storage}/{id}'
  787. defaults:
  788. _controller: '\Drupal\webform\Controller\WebformElementController::close'
  789. _storage: user
  790. requirements:
  791. _user_is_logged_in: 'TRUE'
  792. _csrf_token: 'TRUE'