You are here

webform_ui.routing.yml in Webform 8.5

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

File

modules/webform_ui/webform_ui.routing.yml
View source
  1. # Elements.
  2. entity.webform.source_form:
  3. path: '/admin/structure/webform/manage/{webform}/source'
  4. defaults:
  5. _title_callback: '\Drupal\webform\Controller\WebformEntityController::title'
  6. _entity_form: 'webform.source'
  7. requirements:
  8. _custom_access: '\Drupal\webform_ui\Access\WebformUiAccess::checkWebformSourceAccess'
  9. # Options.
  10. entity.webform_options.source_form:
  11. path: '/admin/structure/webform/config/options/manage/{webform_options}/source'
  12. defaults:
  13. _entity_form: 'webform_options.source'
  14. requirements:
  15. _custom_access: '\Drupal\webform_ui\Access\WebformUiAccess::checkWebformOptionSourceAccess'
  16. # Element.
  17. entity.webform_ui.element:
  18. path: '/admin/structure/webform/manage/{webform}/element/add'
  19. defaults:
  20. _form: '\Drupal\webform_ui\Form\WebformUiElementTypeSelectForm'
  21. _title: 'Select an element'
  22. requirements:
  23. _custom_access: '\Drupal\webform_ui\Access\WebformUiAccess::checkWebformEditAccess'
  24. entity.webform_ui.change_element:
  25. path: '/admin/structure/webform/manage/{webform}/element/{key}/change'
  26. defaults:
  27. _form: '\Drupal\webform_ui\Form\WebformUiElementTypeChangeForm'
  28. _title: 'Select new element type'
  29. requirements:
  30. _custom_access: '\Drupal\webform_ui\Access\WebformUiAccess::checkWebformEditAccess'
  31. entity.webform_ui.element.add_form:
  32. path: '/admin/structure/webform/manage/{webform}/element/add/{type}'
  33. defaults:
  34. _form: '\Drupal\webform_ui\Form\WebformUiElementAddForm'
  35. _title: 'Add element'
  36. requirements:
  37. _custom_access: '\Drupal\webform_ui\Access\WebformUiAccess::checkWebformElementAccess'
  38. entity.webform_ui.element.add_page:
  39. path: '/admin/structure/webform/manage/{webform}/element/add/page'
  40. defaults:
  41. _form: '\Drupal\webform_ui\Form\WebformUiElementAddForm'
  42. _title: 'Add page'
  43. type: webform_wizard_page
  44. requirements:
  45. _custom_access: '\Drupal\webform_ui\Access\WebformUiAccess::checkWebformElementAccess'
  46. entity.webform_ui.element.add_layout:
  47. path: '/admin/structure/webform/manage/{webform}/element/add/layout'
  48. defaults:
  49. _form: '\Drupal\webform_ui\Form\WebformUiElementAddForm'
  50. _title: 'Add layout'
  51. type: webform_flexbox
  52. requirements:
  53. _custom_access: '\Drupal\webform_ui\Access\WebformUiAccess::checkWebformElementAccess'
  54. entity.webform_ui.element.edit_form:
  55. path: '/admin/structure/webform/manage/{webform}/element/{key}/edit'
  56. defaults:
  57. _form: '\Drupal\webform_ui\Form\WebformUiElementEditForm'
  58. _title: 'Edit element'
  59. requirements:
  60. _custom_access: '\Drupal\webform_ui\Access\WebformUiAccess::checkWebformEditAccess'
  61. entity.webform_ui.element.duplicate_form:
  62. path: '/admin/structure/webform/manage/{webform}/element/{key}/duplicate'
  63. defaults:
  64. _form: '\Drupal\webform_ui\Form\WebformUiElementDuplicateForm'
  65. _title: 'Duplicate element'
  66. requirements:
  67. _custom_access: '\Drupal\webform_ui\Access\WebformUiAccess::checkWebformEditAccess'
  68. entity.webform_ui.element.delete_form:
  69. path: '/admin/structure/webform/manage/{webform}/element/{key}/delete'
  70. defaults:
  71. _form: '\Drupal\webform_ui\Form\WebformUiElementDeleteForm'
  72. _title: 'Delete element'
  73. requirements:
  74. _custom_access: '\Drupal\webform_ui\Access\WebformUiAccess::checkWebformEditAccess'
  75. webform.reports_plugins.elements.test:
  76. path: '/admin/reports/webform-plugins/elements/{type}/test'
  77. defaults:
  78. _form: '\Drupal\webform_ui\Form\WebformUiElementTestForm'
  79. _title: 'Test element'
  80. requirements:
  81. _permission: 'administer webform'