You are here

user_revision.routing.yml in User Revision 8

File

user_revision.routing.yml
View source
  1. entity.user.version_history:
  2. path: '/user/{user}/revisions'
  3. defaults:
  4. _title: 'Revisions'
  5. _controller: '\Drupal\user_revision\Controller\UserController::revisionOverview'
  6. requirements:
  7. _access_user_revision: 'view'
  8. options:
  9. _admin_route: TRUE
  10. entity.user.revision:
  11. path: '/user/{user}/revisions/{user_revision}/view'
  12. defaults:
  13. _controller: '\Drupal\user_revision\Controller\UserController::revisionShow'
  14. _title_callback: '\Drupal\user_revision\Controller\UserController::revisionPageTitle'
  15. requirements:
  16. _access_user_revision: 'view'
  17. user.revision_revert_confirm:
  18. path: '/user/{user}/revisions/{user_revision}/revert'
  19. defaults:
  20. _form: '\Drupal\user_revision\Form\UserRevisionRevertForm'
  21. _title: 'Revert to earlier revision'
  22. requirements:
  23. _access_user_revision: 'update'
  24. options:
  25. _admin_route: TRUE
  26. user.revision_delete_confirm:
  27. path: '/user/{user}/revisions/{user_revision}/delete'
  28. defaults:
  29. _form: '\Drupal\user_revision\Form\UserRevisionDeleteForm'
  30. _title: 'Delete earlier revision'
  31. requirements:
  32. _access_user_revision: 'delete'
  33. options:
  34. _admin_route: TRUE