You are here

contact_form_revisions.routing.yml in Config Entity Revisions 8.2

modules/contact_form_revisions/contact_form_revisions.routing.yml

File

modules/contact_form_revisions/contact_form_revisions.routing.yml
View source
  1. entity.contact_form.revisions:
  2. path: '/admin/structure/contact/manage/{contact_form}/revisions'
  3. defaults:
  4. _title: 'Revisions'
  5. _form: '\Drupal\contact_form_revisions\Form\ContactFormRevisionsOverviewForm'
  6. options:
  7. parameters:
  8. contact_form:
  9. type: 'entity:contact_form'
  10. requirements:
  11. _permission: 'administer contact form revisions'
  12. entity.contact_form.revision:
  13. path: '/admin/structure/contact/manage/{contact_form}/revisions/{revision_id}'
  14. defaults:
  15. _entity_form: 'contact_form.edit'
  16. _title: 'Edit contact form'
  17. _title_callback: '\Drupal\contact_form_revisions\Controller\ContactFormRevisionsController::revisionShowTitle'
  18. requirements:
  19. _permission: 'administer contact forms'
  20. revision_id: \d+
  21. options:
  22. parameters:
  23. contact_form:
  24. type: 'entity:contact_form'
  25. entity.contact_form.revision_revert_confirm:
  26. path: '/admin/structure/contact/manage/{config_entity}/revisions/{revision_id}/revert'
  27. defaults:
  28. _form: '\Drupal\contact_form_revisions\Form\ContactFormRevisionsRevertForm'
  29. _title: 'Revert to earlier revision'
  30. requirements:
  31. _permission: 'administer contact form revisions'
  32. revision_id: \d+
  33. options:
  34. _node_operation_route: TRUE
  35. parameters:
  36. config_entity:
  37. type: 'entity:contact_form'
  38. entity.contact_form.revision_delete_confirm:
  39. path: '/admin/structure/contact/manage/{config_entity}/revisions/{revision_id}/delete'
  40. defaults:
  41. _form: '\Drupal\contact_form_revisions\Form\ContactFormRevisionsDeleteForm'
  42. _title: 'Delete a revision'
  43. requirements:
  44. _permission: 'administer contact form revisions'
  45. revision_id: \d+
  46. options:
  47. _node_operation_route: TRUE
  48. parameters:
  49. config_entity:
  50. type: 'entity:contact_form'