function NodeRevisionRevertForm::getCancelUrl
Same name in other branches
- 8.9.x 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()
- 11.x core/modules/node/src/Form/NodeRevisionRevertForm.php \Drupal\node\Form\NodeRevisionRevertForm::getCancelUrl()
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(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.