user_revision.routing.yml in User Revision 8
6 string references to YAML keys in user_revision.routing.yml
- UserController::revisionOverview in src/
Controller/ UserController.php - Generates an overview table of older revisions of a user.
- UserRevisionDeleteForm::getCancelUrl in src/
Form/ UserRevisionDeleteForm.php - Returns the route to go to if the user cancels the action.
- UserRevisionDeleteForm::submitForm in src/
Form/ UserRevisionDeleteForm.php - Form submission handler.
- UserRevisionRevertForm::getCancelUrl in src/
Form/ UserRevisionRevertForm.php - Returns the route to go to if the user cancels the action.
- UserRevisionRevertForm::submitForm in src/
Form/ UserRevisionRevertForm.php - Form submission handler.
File
user_revision.routing.ymlView source
- entity.user.version_history:
- path: '/user/{user}/revisions'
- defaults:
- _title: 'Revisions'
- _controller: '\Drupal\user_revision\Controller\UserController::revisionOverview'
- requirements:
- _access_user_revision: 'view'
- options:
- _admin_route: TRUE
- entity.user.revision:
- path: '/user/{user}/revisions/{user_revision}/view'
- defaults:
- _controller: '\Drupal\user_revision\Controller\UserController::revisionShow'
- _title_callback: '\Drupal\user_revision\Controller\UserController::revisionPageTitle'
- requirements:
- _access_user_revision: 'view'
-
- user.revision_revert_confirm:
- path: '/user/{user}/revisions/{user_revision}/revert'
- defaults:
- _form: '\Drupal\user_revision\Form\UserRevisionRevertForm'
- _title: 'Revert to earlier revision'
- requirements:
- _access_user_revision: 'update'
- options:
- _admin_route: TRUE
-
- user.revision_delete_confirm:
- path: '/user/{user}/revisions/{user_revision}/delete'
- defaults:
- _form: '\Drupal\user_revision\Form\UserRevisionDeleteForm'
- _title: 'Delete earlier revision'
- requirements:
- _access_user_revision: 'delete'
- options:
- _admin_route: TRUE