You are here

media_revisions_ui.routing.yml in Media Revisions UI 8

Same filename and directory in other branches
  1. 2.0.x media_revisions_ui.routing.yml

File

media_revisions_ui.routing.yml
View source
  1. entity.media.version_history:
  2. path: '/media/{media}/revisions'
  3. defaults:
  4. _title: 'Revisions'
  5. _controller: 'Drupal\media_revisions_ui\Controller\MediaRevisionController::revisionOverview'
  6. options:
  7. parameters:
  8. media:
  9. type: entity:media
  10. _admin_route: TRUE
  11. requirements:
  12. _access_media_revision: 'view'
  13. media: \d+
  14. entity.media.revision_revert_confirm:
  15. path: '/media/{media}/revisions/{media_revision}/revert'
  16. defaults:
  17. _form: '\Drupal\media_revisions_ui\Form\MediaRevisionRevertForm'
  18. _title: 'Revert to earlier revision'
  19. requirements:
  20. _access_media_revision: 'update'
  21. media: \d+
  22. options:
  23. _admin_route: TRUE
  24. entity.media.revision_revert_translation_confirm:
  25. path: '/media/{media}/revisions/{media_revision}/revert/{langcode}'
  26. defaults:
  27. _form: '\Drupal\media_revisions_ui\Form\MediaRevisionRevertTranslationForm'
  28. _title: 'Revert to earlier revision of a translation'
  29. requirements:
  30. _access_media_revision: 'update'
  31. media: \d+
  32. options:
  33. _admin_route: TRUE
  34. entity.media.revision_delete_confirm:
  35. path: '/media/{media}/revisions/{media_revision}/delete'
  36. defaults:
  37. _form: '\Drupal\media_revisions_ui\Form\MediaRevisionDeleteForm'
  38. _title: 'Delete earlier revision'
  39. requirements:
  40. _access_media_revision: 'delete'
  41. media: \d+
  42. options:
  43. _admin_route: TRUE