You are here

webform.routing.yml in Webform 8.5

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