You are here

view_revisions.routing.yml in Config Entity Revisions 8.2

modules/view_revisions/view_revisions.routing.yml

File

modules/view_revisions/view_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\view_revisions\Form\ViewRevisionsOverviewForm'
  6. options:
  7. _admin_route: TRUE
  8. parameters:
  9. view:
  10. type: 'entity:view'
  11. requirements:
  12. _permission: 'administer views revisions'
  13. entity.view.revision:
  14. path: '/admin/structure/views/view/{view}/revision/{revision_id}'
  15. defaults:
  16. _controller: '\Drupal\views_ui\Controller\ViewsUIController::edit'
  17. _title_callback: '\Drupal\view_revisions\Controller\ViewRevisionsController::revisionShowTitle'
  18. requirements:
  19. _permission: 'administer views revisions'
  20. revision_id: \d+
  21. options:
  22. parameters:
  23. view:
  24. type: 'entity:view'
  25. entity.view.preview_revision_form:
  26. path: '/admin/structure/views/view/{view}/revision/{revision_id}/preview/{display_id}'
  27. options:
  28. parameters:
  29. view:
  30. tempstore: TRUE
  31. type: entity:view
  32. revision_id:
  33. defaults:
  34. _entity_form: 'view.preview'
  35. display_id: NULL
  36. requirements:
  37. _permission: 'administer views'
  38. revision_id: \d+
  39. entity.view.revision_revert_confirm:
  40. path: '/admin/structure/views/view/{config_entity}/revisions/{revision_id}/revert'
  41. defaults:
  42. _form: '\Drupal\view_revisions\Form\ViewRevisionsRevertForm'
  43. _title: 'Revert to earlier revision'
  44. requirements:
  45. _permission: 'administer views revisions'
  46. revision_id: \d+
  47. options:
  48. _admin_route: TRUE
  49. parameters:
  50. config_entity:
  51. type: 'entity:view'
  52. entity.view.revision_delete_confirm:
  53. path: '/admin/structure/views/view/{config_entity}/revisions/{revision_id}/delete'
  54. defaults:
  55. _form: '\Drupal\view_revisions\Form\ViewRevisionsDeleteForm'
  56. _title: 'Delete a revision'
  57. requirements:
  58. _permission: 'administer views revisions'
  59. revision_id: \d+
  60. options:
  61. _admin_route: TRUE
  62. parameters:
  63. config_entity:
  64. type: 'entity:view'