You are here

webform_node.routing.yml in Webform 8.5

Same filename and directory in other branches
  1. 6.x modules/webform_node/webform_node.routing.yml
modules/webform_node/webform_node.routing.yml

File

modules/webform_node/webform_node.routing.yml
View source
  1. entity.webform.references:
  2. path: '/admin/structure/webform/manage/{webform}/references'
  3. defaults:
  4. _controller: '\Drupal\webform_node\Controller\WebformNodeReferencesListController::listing'
  5. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  6. requirements:
  7. _entity_access: 'webform.update'
  8. entity.webform.references.add_form:
  9. path: '/admin/structure/webform/manage/{webform}/references/add'
  10. defaults:
  11. _form: '\Drupal\webform_node\Form\WebformNodeReferencesAddForm'
  12. _title: 'Add reference'
  13. requirements:
  14. _entity_access: 'webform.update'
  15. entity.node.webform.confirmation:
  16. path: '/node/{node}/webform/confirmation'
  17. defaults:
  18. _controller: '\Drupal\webform\Controller\WebformEntityController::confirmation'
  19. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  20. operation: view
  21. entity_access: 'webform.submission_create'
  22. options:
  23. parameters:
  24. node:
  25. type: 'entity:node'
  26. requirements:
  27. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformAccess'
  28. entity.node.webform.user.submissions:
  29. path: '/node/{node}/webform/submissions/{submission_view}'
  30. defaults:
  31. _entity_list: 'webform_submission'
  32. _title: 'Submissions'
  33. submission_view: ''
  34. operation: ''
  35. entity_access: 'webform.submission_view_own'
  36. options:
  37. parameters:
  38. node:
  39. type: 'entity:node'
  40. requirements:
  41. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformAccess'
  42. entity.node.webform.user.drafts:
  43. path: '/node/{node}/webform/drafts/{submission_view}'
  44. defaults:
  45. _entity_list: 'webform_submission'
  46. _title: 'Drafts'
  47. submission_view: ''
  48. operation: view
  49. entity_access: 'webform.submission_create'
  50. options:
  51. parameters:
  52. node:
  53. type: 'entity:node'
  54. requirements:
  55. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformDraftsAccess'
  56. entity.node.webform.user.submission:
  57. path: '/node/{node}/webform/submissions/{webform_submission}'
  58. defaults:
  59. _controller: '\Drupal\webform\Controller\WebformSubmissionViewController::view'
  60. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  61. view_mode: 'html'
  62. operation: webform_submission_view
  63. entity_access: 'webform_submission.view'
  64. options:
  65. parameters:
  66. node:
  67. type: 'entity:node'
  68. requirements:
  69. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  70. entity.node.webform.user.submission.edit:
  71. path: '/node/{node}/webform/submissions/{webform_submission}/edit'
  72. defaults:
  73. _entity_form: 'webform_submission.edit'
  74. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  75. operation: webform_submission_edit
  76. entity_access: 'webform_submission.update'
  77. options:
  78. parameters:
  79. node:
  80. type: 'entity:node'
  81. requirements:
  82. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  83. entity.node.webform.user.submission.delete:
  84. path: '/node/{node}/webform/submissions/{webform_submission}/delete'
  85. defaults:
  86. _entity_form: 'webform_submission.delete'
  87. _title: 'Delete webform submission'
  88. operation: webform_submission_delete
  89. entity_access: 'webform_submission.delete'
  90. options:
  91. parameters:
  92. node:
  93. type: 'entity:node'
  94. requirements:
  95. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  96. entity.node.webform.user.submission.duplicate:
  97. path: '/node/{node}/webform/submissions/{webform_submission}/duplicate'
  98. defaults:
  99. _entity_form: 'webform_submission.duplicate'
  100. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  101. duplicate: TRUE
  102. operation: webform_submission_duplicate
  103. entity_access: 'webform_submission.update'
  104. options:
  105. parameters:
  106. node:
  107. type: 'entity:node'
  108. requirements:
  109. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  110. entity.node.webform.test_form:
  111. path: '/node/{node}/webform/test'
  112. defaults:
  113. _controller: '\Drupal\webform\Controller\WebformTestController::testForm'
  114. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  115. operation: webform_submission_view
  116. entity_access: 'webform.test'
  117. options:
  118. parameters:
  119. node:
  120. type: 'entity:node'
  121. requirements:
  122. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformAccess'
  123. entity.node.webform.results_submissions:
  124. path: '/node/{node}/webform/results/submissions/{submission_view}'
  125. defaults:
  126. _entity_list: 'webform_submission'
  127. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  128. submission_view: ''
  129. operation: webform_submission_view
  130. entity_access: 'webform.submission_view_any'
  131. options:
  132. parameters:
  133. node:
  134. type: 'entity:node'
  135. requirements:
  136. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformResultsAccess'
  137. entity.node.webform.results_submissions.custom:
  138. path: '/node/{node}/webform/results/submissions/custom'
  139. defaults:
  140. _form: 'Drupal\webform\Form\WebformResultsCustomForm'
  141. _title: 'Customize table'
  142. operation: webform_submission_view
  143. entity_access: 'webform.submission_view_any'
  144. options:
  145. parameters:
  146. node:
  147. type: 'entity:node'
  148. requirements:
  149. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformResultsAccess'
  150. entity.node.webform.results_submissions.custom.user:
  151. path: '/node/{node}/webform/results/submissions/custom/user'
  152. defaults:
  153. _form: 'Drupal\webform\Form\WebformResultsCustomForm'
  154. _title: 'Customize my table'
  155. operation: webform_submission_view
  156. entity_access: 'webform.submission_view_any'
  157. type: 'user'
  158. options:
  159. parameters:
  160. node:
  161. type: 'entity:node'
  162. requirements:
  163. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformResultsAccess'
  164. entity.node.webform.results_export:
  165. path: '/node/{node}/webform/results/download'
  166. defaults:
  167. _controller: '\Drupal\webform\Controller\WebformResultsExportController::index'
  168. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  169. operation: webform_submission_view
  170. entity_access: 'webform.submission_view_any'
  171. options:
  172. parameters:
  173. node:
  174. type: 'entity:node'
  175. requirements:
  176. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformResultsAccess'
  177. entity.node.webform.results_export_file:
  178. path: '/node/{node}/webform/results/download/file/{filename}'
  179. defaults:
  180. _controller: '\Drupal\webform\Controller\WebformResultsExportController::file'
  181. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  182. operation: webform_submission_view
  183. entity_access: 'webform.submission_view_any'
  184. options:
  185. parameters:
  186. node:
  187. type: 'entity:node'
  188. requirements:
  189. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformResultsAccess'
  190. entity.node.webform.results_clear:
  191. path: '/node/{node}/webform/results/clear'
  192. defaults:
  193. _form: 'Drupal\webform\Form\WebformResultsClearForm'
  194. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  195. operation: webform_submission_delete
  196. entity_access: 'webform.submission_purge_any'
  197. options:
  198. parameters:
  199. node:
  200. type: 'entity:node'
  201. requirements:
  202. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformResultsAccess'
  203. entity.node.webform_submission.canonical:
  204. path: '/node/{node}/webform/submission/{webform_submission}'
  205. defaults:
  206. _controller: '\Drupal\webform\Controller\WebformSubmissionViewController::view'
  207. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  208. view_mode: 'html'
  209. operation: webform_submission_view
  210. entity_access: 'webform_submission.view'
  211. options:
  212. _admin_route: TRUE
  213. parameters:
  214. node:
  215. type: 'entity:node'
  216. requirements:
  217. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  218. entity.node.webform_submission.table:
  219. path: '/node/{node}/webform/submission/{webform_submission}/table'
  220. defaults:
  221. _controller: '\Drupal\webform\Controller\WebformSubmissionViewController::view'
  222. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  223. view_mode: 'table'
  224. operation: webform_submission_view
  225. entity_access: 'webform_submission.view_any'
  226. options:
  227. _admin_route: TRUE
  228. parameters:
  229. node:
  230. type: 'entity:node'
  231. requirements:
  232. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  233. entity.node.webform_submission.text:
  234. path: '/node/{node}/webform/submission/{webform_submission}/text'
  235. defaults:
  236. _controller: '\Drupal\webform\Controller\WebformSubmissionViewController::view'
  237. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  238. view_mode: 'text'
  239. operation: webform_submission_view
  240. entity_access: 'webform_submission.view_any'
  241. options:
  242. _admin_route: TRUE
  243. parameters:
  244. node:
  245. type: 'entity:node'
  246. requirements:
  247. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  248. entity.node.webform_submission.yaml:
  249. path: '/node/{node}/webform/submission/{webform_submission}/yaml'
  250. defaults:
  251. _controller: '\Drupal\webform\Controller\WebformSubmissionViewController::view'
  252. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  253. view_mode: 'yaml'
  254. operation: webform_submission_view
  255. entity_access: 'webform_submission.view_any'
  256. options:
  257. _admin_route: TRUE
  258. parameters:
  259. node:
  260. type: 'entity:node'
  261. requirements:
  262. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  263. entity.node.webform_submission.edit_form:
  264. path: '/node/{node}/webform/submission/{webform_submission}/edit'
  265. defaults:
  266. _entity_form: 'webform_submission.edit'
  267. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  268. operation: webform_submission_edit
  269. entity_access: 'webform_submission.update'
  270. options:
  271. _admin_route: TRUE
  272. parameters:
  273. node:
  274. type: 'entity:node'
  275. requirements:
  276. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  277. entity.node.webform_submission.edit_form.all:
  278. path: '/node/{node}/webform/submission/{webform_submission}/edit/all'
  279. defaults:
  280. _entity_form: 'webform_submission.edit_all'
  281. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  282. operation: webform_submission_edit_all
  283. entity_access: 'webform_submission.update'
  284. options:
  285. _admin_route: TRUE
  286. parameters:
  287. node:
  288. type: 'entity:node'
  289. requirements:
  290. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  291. entity.node.webform_submission.notes_form:
  292. path: '/node/{node}/webform/submission/{webform_submission}/notes'
  293. defaults:
  294. _entity_form: 'webform_submission.notes'
  295. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  296. operation: webform_submission_notes
  297. entity_access: 'webform_submission.update_any'
  298. options:
  299. _admin_route: TRUE
  300. parameters:
  301. node:
  302. type: 'entity:node'
  303. requirements:
  304. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  305. entity.node.webform_submission.resend_form:
  306. path: '/node/{node}/webform/submission/{webform_submission}/resend'
  307. defaults:
  308. _form: 'Drupal\webform\Form\WebformSubmissionResendForm'
  309. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  310. operation: webform_submission_resend
  311. entity_access: 'webform_submission.resend'
  312. options:
  313. _admin_route: TRUE
  314. parameters:
  315. node:
  316. type: 'entity:node'
  317. requirements:
  318. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  319. entity.node.webform_submission.duplicate_form:
  320. path: '/node/{node}/webform/submission/{webform_submission}/duplicate'
  321. defaults:
  322. _entity_form: 'webform_submission.duplicate'
  323. _title_callback: '\Drupal\webform\Controller\WebformSubmissionViewController::title'
  324. operation: webform_submission_duplicate
  325. entity_access: 'webform_submission.duplicate'
  326. duplicate: TRUE
  327. options:
  328. _admin_route: TRUE
  329. parameters:
  330. node:
  331. type: 'entity:node'
  332. requirements:
  333. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  334. entity.node.webform_submission.delete_form:
  335. path: '/node/{node}/webform/submission/{webform_submission}/delete'
  336. defaults:
  337. _entity_form: 'webform_submission.delete'
  338. _title: 'Delete webform submission'
  339. operation: webform_submission_delete
  340. entity_access: 'webform_submission.delete'
  341. options:
  342. _admin_route: TRUE
  343. parameters:
  344. node:
  345. type: 'entity:node'
  346. requirements:
  347. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformSubmissionAccess'
  348. entity.node.webform.entity_reference.set:
  349. path: '/node/{node}/webform/change/{webform}'
  350. defaults:
  351. _controller: '\Drupal\webform_node\Controller\WebformNodeEntityReferenceController::change'
  352. operation: webform_submission_view
  353. entity_access: 'webform.submission_view_any'
  354. options:
  355. parameters:
  356. node:
  357. type: 'entity:node'
  358. webform:
  359. type: 'entity:webform'
  360. requirements:
  361. _custom_access: '\Drupal\webform_node\Access\WebformNodeAccess::checkWebformAccess'
  362. _csrf_token: 'TRUE'