You are here

entity_legal.routing.yml in Entity Legal 8.2

File

entity_legal.routing.yml
View source
  1. entity.entity_legal_document.collection:
  2. path: '/admin/structure/legal'
  3. defaults:
  4. _entity_list: 'entity_legal_document'
  5. _title: 'Legal documents'
  6. requirements:
  7. _permission: 'administer entity legal'
  8. entity.entity_legal_document.add_form:
  9. path: '/admin/structure/legal/add'
  10. defaults:
  11. _entity_form: 'entity_legal_document.add'
  12. _title: 'Add legal document'
  13. requirements:
  14. _permission: 'administer entity legal'
  15. entity.entity_legal_document.edit_form:
  16. path: '/admin/structure/legal/manage/{entity_legal_document}'
  17. defaults:
  18. _entity_form: 'entity_legal_document.edit'
  19. _title_callback: 'Drupal\entity_legal\Controller\EntityLegalController::documentEditPageTitle'
  20. requirements:
  21. _entity_access: 'entity_legal_document.update'
  22. entity.entity_legal_document.delete_form:
  23. path: '/admin/structure/legal/manage/{entity_legal_document}/delete'
  24. defaults:
  25. _entity_form: 'entity_legal_document.delete'
  26. _title: 'Delete'
  27. requirements:
  28. _entity_access: 'entity_legal_document.delete'
  29. entity.entity_legal_document.canonical:
  30. path: '/legal/document/{entity_legal_document}'
  31. defaults:
  32. _controller: '\Drupal\entity_legal\Controller\EntityLegalController::documentPage'
  33. _title_callback: 'Drupal\entity_legal\Controller\EntityLegalController::documentPageTitle'
  34. requirements:
  35. _entity_access: 'entity_legal_document.view'
  36. entity.entity_legal_document_version.add_form:
  37. path: '/admin/structure/legal/manage/{entity_legal_document}/add'
  38. defaults:
  39. _controller: '\Drupal\entity_legal\Controller\EntityLegalController::documentVersionForm'
  40. _title_callback: 'Drupal\entity_legal\Controller\EntityLegalController::documentVersionAddFormTitle'
  41. requirements:
  42. _permission: 'administer entity legal'
  43. entity.entity_legal_document_version.edit_form:
  44. path: '/admin/structure/legal/manage/{entity_legal_document}/manage/{entity_legal_document_version}'
  45. defaults:
  46. _entity_form: 'entity_legal_document_version.default'
  47. _title_callback: 'Drupal\entity_legal\Controller\EntityLegalController::documentVersionEditFormTitle'
  48. requirements:
  49. _entity_access: 'entity_legal_document_version.update'
  50. entity.entity_legal_document_version.canonical:
  51. path: '/legal/document/{entity_legal_document}/{entity_legal_document_version}'
  52. defaults:
  53. _controller: '\Drupal\entity_legal\Controller\EntityLegalController::documentPage'
  54. _title_callback: 'Drupal\entity_legal\Controller\EntityLegalController::documentPageTitle'
  55. requirements:
  56. _entity_access: 'entity_legal_document.view'