You are here

views_revisions.routing.yml in Config Entity Revisions 8

Same filename and directory in other branches
  1. 1.x modules/views_revisions/views_revisions.routing.yml
modules/views_revisions/views_revisions.routing.yml

File

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