You are here

yamlform.routing.yml in YAML Form 8

File

yamlform.routing.yml
View source
  1. yamlform.settings:
  2. path: '/admin/structure/yamlform/settings'
  3. defaults:
  4. _form: '\Drupal\yamlform\Form\YamlFormAdminSettingsForm'
  5. _title: 'Forms: Settings'
  6. requirements:
  7. _permission: 'administer yamlform'
  8. yamlform.help:
  9. path: '/admin/help/yamlform/{id}'
  10. defaults:
  11. _controller: '\Drupal\yamlform\Controller\YamlFormHelpController::index'
  12. _title_callback: '\Drupal\yamlform\Controller\YamlFormHelpController::title'
  13. requirements:
  14. _access: 'TRUE'
  15. yamlform.admin_settings.third_party:
  16. path: '/admin/structure/yamlform/settings/third-party'
  17. defaults:
  18. _form: '\Drupal\yamlform\Form\YamlFormAdminThirdPartySettingsForm'
  19. _title: 'Forms: Third party settings'
  20. requirements:
  21. _permission: 'administer yamlform'
  22. yamlform.addons:
  23. path: '/admin/structure/yamlform/addons'
  24. defaults:
  25. _controller: '\Drupal\yamlform\Controller\YamlFormAddonsController::index'
  26. _title: 'Forms'
  27. requirements:
  28. _permission: 'administer yamlform'
  29. # Forms
  30. entity.yamlform.collection:
  31. path: '/admin/structure/yamlform'
  32. defaults:
  33. _entity_list: 'yamlform'
  34. _title: 'Forms'
  35. requirements:
  36. _custom_access: '\Drupal\yamlform\Access\YamlFormAccess::checkOverviewAccess'
  37. entity.yamlform.autocomplete:
  38. path: '/admin/structure/yamlform/autocomplete'
  39. defaults:
  40. _controller: '\Drupal\yamlform\Controller\YamlFormController::autocomplete'
  41. requirements:
  42. _custom_access: '\Drupal\yamlform\Access\YamlFormAccess::checkOverviewAccess'
  43. entity.yamlform.canonical:
  44. path: '/yamlform/{yamlform}'
  45. defaults:
  46. _controller: '\Drupal\yamlform\Controller\YamlFormController::addForm'
  47. _title_callback: '\Drupal\yamlform\Controller\YamlFormController::title'
  48. requirements:
  49. _entity_access: 'yamlform.submission_page'
  50. entity.yamlform.assets.javascript:
  51. path: '/yamlform/{yamlform}/assets/javascript'
  52. defaults:
  53. _controller: '\Drupal\yamlform\Controller\YamlFormController::javascript'
  54. requirements:
  55. _entity_access: 'yamlform.submission_page'
  56. entity.yamlform.assets.css:
  57. path: '/yamlform/{yamlform}/assets/css'
  58. defaults:
  59. _controller: '\Drupal\yamlform\Controller\YamlFormController::css'
  60. requirements:
  61. _entity_access: 'yamlform.submission_page'
  62. entity.yamlform.confirmation:
  63. path: '/yamlform/{yamlform}/confirmation'
  64. defaults:
  65. _controller: '\Drupal\yamlform\Controller\YamlFormController::confirmation'
  66. _title_callback: '\Drupal\yamlform\Controller\YamlFormController::title'
  67. requirements:
  68. _entity_access: 'yamlform.submission_create'
  69. entity.yamlform.user.submissions:
  70. path: '/yamlform/{yamlform}/submissions'
  71. defaults:
  72. _entity_list: 'yamlform_submission'
  73. _title: 'Submissions'
  74. options:
  75. parameters:
  76. yamlform:
  77. type: 'entity:yamlform'
  78. requirements:
  79. _entity_access: 'yamlform.submission_view_own'
  80. _user_is_logged_in: 'TRUE'
  81. entity.yamlform.user.submission:
  82. path: '/yamlform/{yamlform}/submissions/{yamlform_submission}'
  83. defaults:
  84. _controller: '\Drupal\yamlform\Controller\YamlFormSubmissionController::index'
  85. _title_callback: 'Drupal\yamlform\Controller\YamlFormSubmissionController::title'
  86. type: 'default'
  87. requirements:
  88. _entity_access: 'yamlform_submission.view'
  89. entity.yamlform.user.submission.edit:
  90. path: '/yamlform/{yamlform}/submissions/{yamlform_submission}/edit'
  91. defaults:
  92. _entity_form: 'yamlform_submission.default'
  93. _title_callback: 'Drupal\yamlform\Controller\YamlFormSubmissionController::title'
  94. requirements:
  95. _entity_access: 'yamlform_submission.update'
  96. entity.yamlform.test:
  97. path: '/yamlform/{yamlform}/test'
  98. defaults:
  99. _controller: '\Drupal\yamlform\Controller\YamlFormTestController::testForm'
  100. _title_callback: '\Drupal\yamlform\Controller\YamlFormTestController::title'
  101. options:
  102. parameters:
  103. yamlform:
  104. type: 'entity:yamlform'
  105. requirements:
  106. _entity_access: 'yamlform.update'
  107. entity.yamlform.add_form:
  108. path: '/admin/structure/yamlform/add'
  109. defaults:
  110. _entity_form: 'yamlform.default'
  111. _title: 'Add form'
  112. requirements:
  113. _entity_create_access: 'yamlform'
  114. entity.yamlform.edit_form:
  115. path: '/admin/structure/yamlform/manage/{yamlform}'
  116. defaults:
  117. _entity_form: 'yamlform.default'
  118. _title_callback: '\Drupal\yamlform\Controller\YamlFormController::title'
  119. requirements:
  120. _entity_access: 'yamlform.update'
  121. entity.yamlform.settings_form:
  122. path: '/admin/structure/yamlform/manage/{yamlform}/settings'
  123. defaults:
  124. _entity_form: 'yamlform.settings'
  125. _title_callback: '\Drupal\yamlform\Controller\YamlFormController::title'
  126. requirements:
  127. _entity_access: 'yamlform.update'
  128. entity.yamlform.assets_form:
  129. path: '/admin/structure/yamlform/manage/{yamlform}/assets'
  130. defaults:
  131. _entity_form: 'yamlform.assets'
  132. _title_callback: '\Drupal\yamlform\Controller\YamlFormController::title'
  133. requirements:
  134. _entity_access: 'yamlform.update'
  135. _permission: 'edit yamlform assets'
  136. entity.yamlform.third_party_settings_form:
  137. path: '/admin/structure/yamlform/manage/{yamlform}/third-party-settings'
  138. defaults:
  139. _entity_form: 'yamlform.third_party_settings'
  140. _title_callback: '\Drupal\yamlform\Controller\YamlFormController::title'
  141. requirements:
  142. _entity_access: 'yamlform.update'
  143. entity.yamlform.access_form:
  144. path: '/admin/structure/yamlform/manage/{yamlform}/access'
  145. defaults:
  146. _entity_form: 'yamlform.access'
  147. _title_callback: '\Drupal\yamlform\Controller\YamlFormController::title'
  148. requirements:
  149. _entity_access: 'yamlform.update'
  150. entity.yamlform.duplicate_form:
  151. path: '/admin/structure/yamlform/manage/{yamlform}/duplicate'
  152. defaults:
  153. _entity_form: 'yamlform.duplicate'
  154. _title: 'Duplicate form'
  155. requirements:
  156. _entity_access: 'yamlform.duplicate'
  157. entity.yamlform.delete_form:
  158. path: '/admin/structure/yamlform/manage/{yamlform}/delete'
  159. defaults:
  160. _entity_form: 'yamlform.delete'
  161. _title: 'Delete form'
  162. requirements:
  163. _entity_access: 'yamlform.delete'
  164. # Form submission results
  165. entity.yamlform.results_user:
  166. path: '/admin/structure/yamlform/manage/{yamlform}/results/user'
  167. defaults:
  168. _entity_list: 'yamlform_submission'
  169. _title: 'Form results'
  170. options:
  171. parameters:
  172. yamlform:
  173. type: 'entity:yamlform'
  174. requirements:
  175. _entity_access: 'yamlform.submission_view_own'
  176. entity.yamlform.results_submissions:
  177. path: '/admin/structure/yamlform/manage/{yamlform}/results/submissions'
  178. defaults:
  179. _entity_list: 'yamlform_submission'
  180. _title_callback: '\Drupal\yamlform\Controller\YamlFormController::title'
  181. options:
  182. parameters:
  183. yamlform:
  184. type: 'entity:yamlform'
  185. requirements:
  186. _entity_access: 'yamlform.submission_view_any'
  187. entity.yamlform.results_table:
  188. path: '/admin/structure/yamlform/manage/{yamlform}/results/table'
  189. defaults:
  190. _entity_list: 'yamlform_submission'
  191. _title_callback: '\Drupal\yamlform\Controller\YamlFormController::title'
  192. options:
  193. parameters:
  194. yamlform:
  195. type: 'entity:yamlform'
  196. requirements:
  197. _entity_access: 'yamlform.submission_view_any'
  198. entity.yamlform.results_table.custom:
  199. path: '/admin/structure/yamlform/manage/{yamlform}/results/table/custom'
  200. defaults:
  201. _form: 'Drupal\yamlform\Form\YamlFormResultsCustomForm'
  202. _title: 'Customize table'
  203. options:
  204. parameters:
  205. yamlform:
  206. type: 'entity:yamlform'
  207. requirements:
  208. _entity_access: 'yamlform.submission_view_any'
  209. entity.yamlform.results_export:
  210. path: '/admin/structure/yamlform/manage/{yamlform}/results/download'
  211. defaults:
  212. _controller: '\Drupal\yamlform\Controller\YamlFormResultsExportController::index'
  213. _title_callback: 'Drupal\yamlform\Controller\YamlFormController::title'
  214. options:
  215. parameters:
  216. yamlform:
  217. type: 'entity:yamlform'
  218. requirements:
  219. _entity_access: 'yamlform.submission_view_any'
  220. entity.yamlform.results_export_file:
  221. path: '/admin/structure/yamlform/manage/{yamlform}/results/download/file/{filename}'
  222. defaults:
  223. _controller: '\Drupal\yamlform\Controller\YamlFormResultsExportController::file'
  224. _title_callback: 'Drupal\yamlform\Controller\YamlFormController::title'
  225. options:
  226. parameters:
  227. yamlform:
  228. type: 'entity:yamlform'
  229. requirements:
  230. _entity_access: 'yamlform.submission_view_any'
  231. entity.yamlform.results_clear:
  232. path: '/admin/structure/yamlform/manage/{yamlform}/results/clear'
  233. defaults:
  234. _form: 'Drupal\yamlform\Form\YamlFormResultsClearForm'
  235. _title_callback: 'Drupal\yamlform\Controller\YamlFormController::title'
  236. options:
  237. parameters:
  238. yamlform:
  239. type: 'entity:yamlform'
  240. requirements:
  241. _entity_access: 'yamlform.submission_purge_any'
  242. # Form options
  243. entity.yamlform_options.collection:
  244. path: '/admin/structure/yamlform/settings/options/manage'
  245. defaults:
  246. _entity_list: 'yamlform_options'
  247. _title: 'Forms: Options'
  248. requirements:
  249. _permission: 'administer yamlform'
  250. entity.yamlform_options.add_form:
  251. path: '/admin/structure/yamlform/settings/options/manage/add'
  252. defaults:
  253. _entity_form: 'yamlform_options.default'
  254. _title: 'Add form options'
  255. requirements:
  256. _entity_create_access: 'yamlform_options'
  257. entity.yamlform_options.edit_form:
  258. path: '/admin/structure/yamlform/settings/options/manage/{yamlform_options}/edit'
  259. defaults:
  260. _entity_form: 'yamlform_options.default'
  261. _title_callback: '\Drupal\yamlform\Controller\YamlFormOptionsController::title'
  262. requirements:
  263. _entity_access: 'yamlform_options.update'
  264. entity.yamlform_options.delete_form:
  265. path: '/admin/structure/yamlform/settings/options/{yamlform_options}/delete'
  266. defaults:
  267. _entity_form: 'yamlform_options.delete'
  268. _title: 'Delete form options'
  269. requirements:
  270. _entity_access: 'yamlform_options.delete'
  271. # Form results (submissions)
  272. entity.yamlform_submission.collection:
  273. path: '/admin/structure/yamlform/results/manage'
  274. defaults:
  275. _entity_list: 'yamlform_submission'
  276. _title: 'Forms'
  277. requirements:
  278. _custom_access: '\Drupal\yamlform\Access\YamlFormAccess:checkSubmissionAccess'
  279. entity.yamlform_submission.purge:
  280. path: '/admin/structure/yamlform/results/purge'
  281. defaults:
  282. _form: 'Drupal\yamlform\Form\YamlFormSubmissionsPurgeForm'
  283. _title: 'Forms: Results purge'
  284. requirements:
  285. _permission: 'administer yamlform'
  286. # Form submissions
  287. entity.yamlform_submission.canonical:
  288. path: '/admin/structure/yamlform/manage/{yamlform}/submission/{yamlform_submission}'
  289. defaults:
  290. _controller: '\Drupal\yamlform\Controller\YamlFormSubmissionController::index'
  291. _title_callback: 'Drupal\yamlform\Controller\YamlFormSubmissionController::title'
  292. type: 'default'
  293. requirements:
  294. _entity_access: 'yamlform_submission.view'
  295. entity.yamlform_submission.table:
  296. path: '/admin/structure/yamlform/manage/{yamlform}/submission/{yamlform_submission}/table'
  297. defaults:
  298. _controller: '\Drupal\yamlform\Controller\YamlFormSubmissionController::index'
  299. _title_callback: 'Drupal\yamlform\Controller\YamlFormSubmissionController::title'
  300. type: 'table'
  301. requirements:
  302. _entity_access: 'yamlform_submission.view'
  303. entity.yamlform_submission.text:
  304. path: '/admin/structure/yamlform/manage/{yamlform}/submission/{yamlform_submission}/text'
  305. defaults:
  306. _controller: '\Drupal\yamlform\Controller\YamlFormSubmissionController::index'
  307. _title_callback: 'Drupal\yamlform\Controller\YamlFormSubmissionController::title'
  308. type: 'text'
  309. requirements:
  310. _entity_access: 'yamlform_submission.view_any'
  311. entity.yamlform_submission.yaml:
  312. path: '/admin/structure/yamlform/manage/{yamlform}/submission/{yamlform_submission}/yaml'
  313. defaults:
  314. _controller: '\Drupal\yamlform\Controller\YamlFormSubmissionController::index'
  315. _title_callback: 'Drupal\yamlform\Controller\YamlFormSubmissionController::title'
  316. type: 'yaml'
  317. requirements:
  318. _entity_access: 'yamlform_submission.view_any'
  319. entity.yamlform_submission.edit_form:
  320. path: '/admin/structure/yamlform/manage/{yamlform}/submission/{yamlform_submission}/edit'
  321. defaults:
  322. _entity_form: 'yamlform_submission.default'
  323. _title_callback: 'Drupal\yamlform\Controller\YamlFormSubmissionController::title'
  324. requirements:
  325. _entity_access: 'yamlform_submission.update'
  326. entity.yamlform_submission.notes_form:
  327. path: '/admin/structure/yamlform/manage/{yamlform}/submission/{yamlform_submission}/notes'
  328. defaults:
  329. _entity_form: 'yamlform_submission.notes'
  330. _title_callback: 'Drupal\yamlform\Controller\YamlFormSubmissionController::title'
  331. requirements:
  332. _entity_access: 'yamlform_submission.update_any'
  333. entity.yamlform_submission.resend_form:
  334. path: '/admin/structure/yamlform/manage/{yamlform}/submission/{yamlform_submission}/resend'
  335. defaults:
  336. _form: 'Drupal\yamlform\Form\YamlFormSubmissionResendForm'
  337. _title_callback: 'Drupal\yamlform\Controller\YamlFormSubmissionController::title'
  338. requirements:
  339. _custom_access: '\Drupal\yamlform\Access\YamlFormAccess::checkEmailAccess'
  340. entity.yamlform_submission.delete_form:
  341. path: '/admin/structure/yamlform/manage/{yamlform}/submission/{yamlform_submission}/delete'
  342. defaults:
  343. _entity_form: 'yamlform_submission.delete'
  344. _title: 'Delete form submission'
  345. requirements:
  346. _entity_access: 'yamlform_submission.delete'
  347. entity.yamlform_submission.sticky_toggle:
  348. path: '/admin/structure/yamlform/manage/{yamlform}/submission/{yamlform_submission}/sticky'
  349. defaults:
  350. _controller: '\Drupal\yamlform\Controller\YamlFormSubmissionController::sticky'
  351. requirements:
  352. _entity_access: 'yamlform_submission.update'
  353. _csrf_token: 'TRUE'
  354. # Handlers
  355. yamlform.handler_plugins:
  356. path: '/admin/structure/yamlform/settings/handlers'
  357. defaults:
  358. _controller: '\Drupal\yamlform\Controller\YamlFormPluginHandlerController::index'
  359. _title: 'Forms: Handlers'
  360. requirements:
  361. _permission: 'administer yamlform'
  362. entity.yamlform.handlers_form:
  363. path: '/admin/structure/yamlform/manage/{yamlform}/handlers'
  364. defaults:
  365. _entity_form: 'yamlform.handlers'
  366. _title_callback: '\Drupal\yamlform\Controller\YamlFormController::title'
  367. requirements:
  368. _entity_access: 'yamlform.update'
  369. entity.yamlform.handlers:
  370. path: '/admin/structure/yamlform/manage/{yamlform}/handlers/add'
  371. defaults:
  372. _controller: '\Drupal\yamlform\Controller\YamlFormPluginHandlerController::listHandlers'
  373. _title: 'Select a handler'
  374. requirements:
  375. _entity_access: 'yamlform.update'
  376. entity.yamlform.handler.add_form:
  377. path: '/admin/structure/yamlform/manage/{yamlform}/handlers/add/{yamlform_handler}'
  378. defaults:
  379. _form: '\Drupal\yamlform\Form\YamlFormHandlerAddForm'
  380. _title: 'Add form handler'
  381. requirements:
  382. _entity_access: 'yamlform.update'
  383. entity.yamlform.handler.edit_form:
  384. path: '/admin/structure/yamlform/manage/{yamlform}/handlers/{yamlform_handler}/edit'
  385. defaults:
  386. _form: '\Drupal\yamlform\Form\YamlFormHandlerEditForm'
  387. _title: 'Edit form handler'
  388. requirements:
  389. _entity_access: 'yamlform.update'
  390. entity.yamlform.handler.delete_form:
  391. path: '/admin/structure/yamlform/manage/{yamlform}/handlers/{yamlform_handler}/delete'
  392. defaults:
  393. _form: '\Drupal\yamlform\Form\YamlFormHandlerDeleteForm'
  394. _title: 'Delete form handler'
  395. requirements:
  396. _entity_access: 'yamlform.update'
  397. # Elements
  398. yamlform.element_plugins:
  399. path: '/admin/structure/yamlform/settings/elements'
  400. defaults:
  401. _controller: '\Drupal\yamlform\Controller\YamlFormPluginElementController::index'
  402. _title: 'Forms: Elements'
  403. requirements:
  404. _permission: 'administer yamlform'
  405. # Exporters
  406. yamlform.exporter_plugins:
  407. path: '/admin/structure/yamlform/settings/exporters'
  408. defaults:
  409. _controller: '\Drupal\yamlform\Controller\YamlFormPluginExporterController::index'
  410. _title: 'Forms: Exports'
  411. requirements:
  412. _permission: 'administer yamlform'
  413. # Autocomplete
  414. yamlform.element.autocomplete:
  415. path: '/yamlform/{yamlform}/autocomplete/{key}'
  416. defaults:
  417. _controller: '\Drupal\yamlform\Controller\YamlFormElementController::autocomplete'
  418. options:
  419. parameters:
  420. yamlform:
  421. type: 'entity:yamlform'
  422. requirements:
  423. _entity_access: 'yamlform.submission_page'
  424. # Autocomplete
  425. yamlform.element.message.close:
  426. path: '/yamlform/message/close/{storage}/{id}'
  427. defaults:
  428. _controller: '\Drupal\yamlform\Controller\YamlFormElementController::close'
  429. _storage: user
  430. requirements:
  431. _access: 'TRUE'
  432. _csrf_token: 'TRUE'