You are here

votingapi.routing.yml in Voting API 8.3

File

votingapi.routing.yml
View source
  1. votingapi.admin_settings:
  2. path: '/admin/config/search/votingapi'
  3. defaults:
  4. _title: 'Voting API settings'
  5. _form: '\Drupal\votingapi\Form\SettingsForm'
  6. requirements:
  7. _permission: 'administer voting api'
  8. entity.vote_type.collection:
  9. path: '/admin/structure/vote-types'
  10. defaults:
  11. _entity_list: 'vote_type'
  12. _title: 'Vote Types'
  13. requirements:
  14. _permission: 'administer vote types'
  15. votingapi.type_add:
  16. path: '/admin/structure/vote-types/add'
  17. defaults:
  18. _entity_form: 'vote_type.add'
  19. _title: 'Add vote type'
  20. requirements:
  21. _permission: 'administer vote types'
  22. entity.vote_type.edit_form:
  23. path: '/admin/structure/vote-types/{vote_type}'
  24. defaults:
  25. _entity_form: 'vote_type.edit'
  26. requirements:
  27. _permission: 'administer vote types'
  28. entity.vote_type.delete_form:
  29. path: '/admin/structure/vote-types/{vote_type}/delete'
  30. defaults:
  31. _entity_form: 'vote_type.delete'
  32. _title: 'Delete'
  33. requirements:
  34. _entity_access: 'vote_type.delete'
  35. entity.vote.delete_form:
  36. path: '/admin/vote/{vote}/delete'
  37. defaults:
  38. _entity_form: 'vote.delete'
  39. _title: 'Delete'
  40. requirements:
  41. _entity_access: 'vote.delete'