You are here

relation.routing.yml in Relation 8

Same filename and directory in other branches
  1. 8.2 relation.routing.yml

File

relation.routing.yml
View source
  1. entity.relation.canonical:
  2. path: '/relation/{relation}'
  3. defaults:
  4. _controller: '\Drupal\relation\Controller\RelationController::page'
  5. _title_callback: '\Drupal\relation\Controller\RelationController::pageTitle'
  6. requirements:
  7. _entity_access: 'relation.view'
  8. entity.relation.edit_form:
  9. path: '/relation/{relation}/edit'
  10. defaults:
  11. _entity_form: 'relation.edit'
  12. requirements:
  13. _entity_access: 'relation.update'
  14. entity.relation.delete_form:
  15. path: '/relation/{relation}/delete'
  16. defaults:
  17. _entity_form: 'relation.delete'
  18. requirements:
  19. _entity_access: 'relation.delete'
  20. entity.relation.collection:
  21. path: '/admin/content/relation'
  22. defaults:
  23. _title: 'Relations'
  24. _entity_list: 'relation'
  25. requirements:
  26. _permission: 'administer relations'
  27. entity.relation_type.add_form:
  28. path: '/admin/structure/relation/add'
  29. defaults:
  30. _entity_form: 'relation_type.add'
  31. _title: 'Add relation type'
  32. requirements:
  33. _permission: 'administer relation types'
  34. entity.relation_type.edit_form:
  35. path: '/admin/structure/relation/manage/{relation_type}'
  36. defaults:
  37. _entity_form: 'relation_type.edit'
  38. requirements:
  39. _permission: 'administer relation types'
  40. entity.relation_type.delete_form:
  41. path: '/admin/structure/relation/manage/{relation_type}/delete'
  42. defaults:
  43. _entity_form: 'relation_type.delete'
  44. requirements:
  45. _permission: 'administer relation types'
  46. entity.relation_type.collection:
  47. path: '/admin/structure/relation'
  48. defaults:
  49. _entity_list: 'relation_type'
  50. _title: 'Relation types'
  51. requirements:
  52. _permission: 'administer relation types'