You are here

webform_access.routing.yml in Webform 6.x

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

File

modules/webform_access/webform_access.routing.yml
View source
  1. # Access group.
  2. entity.webform_access_group.collection:
  3. path: '/admin/structure/webform/access/group/manage'
  4. defaults:
  5. _entity_list: 'webform_access_group'
  6. _title: 'Webforms: Access Group'
  7. requirements:
  8. _custom_access: '\Drupal\webform_access\Access\WebformAccessGroupAccess::checkAdminAccess'
  9. entity.webform_access_group.add_form:
  10. path: '/admin/structure/webform/access/group/manage/add'
  11. defaults:
  12. _entity_form: 'webform_access_group.add'
  13. _title: 'Add webform access group'
  14. requirements:
  15. _entity_create_access: 'webform_access_group'
  16. entity.webform_access_group.edit_form:
  17. path: '/admin/structure/webform/access/group/manage/{webform_access_group}'
  18. defaults:
  19. _entity_form: 'webform_access_group.edit'
  20. _title: 'Edit webform access group'
  21. requirements:
  22. _entity_access: 'webform_access_group.update'
  23. entity.webform_access_group.duplicate_form:
  24. path: '/admin/structure/webform/access/group/{webform_access_group}/duplicate'
  25. defaults:
  26. _entity_form: 'webform_access_group.duplicate'
  27. _title: 'Duplicate webform access group'
  28. requirements:
  29. _entity_access: 'webform_access_group.duplicate'
  30. entity.webform_access_group.delete_form:
  31. path: '/admin/structure/webform/access/group/{webform_access_group}/delete'
  32. defaults:
  33. _entity_form: 'webform_access_group.delete'
  34. _title: 'Delete webform access group'
  35. requirements:
  36. _entity_access: 'webform_access_group.delete'
  37. # Access type.
  38. entity.webform_access_type.collection:
  39. path: '/admin/structure/webform/access/type/manage'
  40. defaults:
  41. _entity_list: 'webform_access_type'
  42. _title: 'Webforms: Access Group'
  43. requirements:
  44. _permission: 'administer webform'
  45. entity.webform_access_type.add_form:
  46. path: '/admin/structure/webform/access/type/manage/add'
  47. defaults:
  48. _entity_form: 'webform_access_type.add'
  49. _title: 'Add webform access type'
  50. requirements:
  51. _entity_create_access: 'webform_access_type'
  52. entity.webform_access_type.edit_form:
  53. path: '/admin/structure/webform/access/type/manage/{webform_access_type}'
  54. defaults:
  55. _entity_form: 'webform_access_type.edit'
  56. _title: 'Edit webform access type'
  57. requirements:
  58. _entity_access: 'webform_access_type.update'
  59. entity.webform_access_type.delete_form:
  60. path: '/admin/structure/webform/access/type/{webform_access_type}/delete'
  61. defaults:
  62. _entity_form: 'webform_access_type.delete'
  63. _title: 'Delete webform access type'
  64. requirements:
  65. _entity_access: 'webform_access_type.delete'