You are here

webform_options_custom.routing.yml in Webform 6.x

Same filename and directory in other branches
  1. 8.5 modules/webform_options_custom/webform_options_custom.routing.yml
modules/webform_options_custom/webform_options_custom.routing.yml

File

modules/webform_options_custom/webform_options_custom.routing.yml
View source
  1. entity.webform_options_custom.collection:
  2. path: '/admin/structure/webform/options/custom/manage'
  3. defaults:
  4. _entity_list: 'webform_options_custom'
  5. _title: 'Webforms: Custom options'
  6. requirements:
  7. _permission: 'administer webform'
  8. entity.webform_options_custom.autocomplete:
  9. path: '/admin/structure/webform/options/custom/autocomplete'
  10. defaults:
  11. _controller: '\Drupal\webform_options_custom\Controller\WebformOptionsCustomController::autocomplete'
  12. requirements:
  13. _permission: 'administer webform'
  14. entity.webform_options_custom.add_form:
  15. path: '/admin/structure/webform/options/custom/manage/add'
  16. defaults:
  17. _entity_form: 'webform_options_custom.add'
  18. _title: 'Add custom options'
  19. requirements:
  20. _entity_create_access: 'webform_options_custom'
  21. entity.webform_options_custom.edit_form:
  22. path: '/admin/structure/webform/options/custom/manage/{webform_options_custom}/edit'
  23. defaults:
  24. _entity_form: 'webform_options_custom.edit'
  25. _title: 'Edit custom options'
  26. requirements:
  27. _entity_access: 'webform_options_custom.update'
  28. entity.webform_options_custom.source_form:
  29. path: '/admin/structure/webform/options/custom/manage/{webform_options_custom}/source'
  30. defaults:
  31. _entity_form: 'webform_options_custom.source'
  32. requirements:
  33. _custom_access: '\Drupal\webform_options_custom\Access\WebformOptionsCustomAccess::checkOptionsCustomSourceAccess'
  34. entity.webform_options_custom.preview_form:
  35. path: '/admin/structure/webform/options/custom/manage/{webform_options_custom}/preview'
  36. defaults:
  37. _entity_form: 'webform_options_custom.preview'
  38. _title: 'Preview custom options'
  39. requirements:
  40. _entity_access: 'webform_options_custom.view'
  41. entity.webform_options_custom.duplicate_form:
  42. path: '/admin/structure/webform/options/custom/{webform_options_custom}/duplicate'
  43. defaults:
  44. _entity_form: 'webform_options_custom.duplicate'
  45. _title: 'Duplicate custom options'
  46. requirements:
  47. _entity_access: 'webform_options_custom.duplicate'
  48. entity.webform_options_custom.delete_form:
  49. path: '/admin/structure/webform/options/custom/{webform_options_custom}/delete'
  50. defaults:
  51. _entity_form: 'webform_options_custom.delete'
  52. _title: 'Delete custom options'
  53. requirements:
  54. _entity_access: 'webform_options_custom.delete'