public function NodeRevisionRevertForm::getCancelUrl in Drupal 8
Same name and namespace in other branches
- 9 core/modules/node/src/Form/NodeRevisionRevertForm.php \Drupal\node\Form\NodeRevisionRevertForm::getCancelUrl()
- 10 core/modules/node/src/Form/NodeRevisionRevertForm.php \Drupal\node\Form\NodeRevisionRevertForm::getCancelUrl()
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ConfirmFormInterface::getCancelUrl
File
- core/
modules/ node/ src/ Form/ NodeRevisionRevertForm.php, line 93
Class
- NodeRevisionRevertForm
- Provides a form for reverting a node revision.
Namespace
Drupal\node\FormCode
public function getCancelUrl() {
return new Url('entity.node.version_history', [
'node' => $this->revision
->id(),
]);
}