You are here

public function NodeRevisionRevertForm::getCancelUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 84
Contains \Drupal\node\Form\NodeRevisionRevertForm.

Class

NodeRevisionRevertForm
Provides a form for reverting a node revision.

Namespace

Drupal\node\Form

Code

public function getCancelUrl() {
  return new Url('entity.node.version_history', array(
    'node' => $this->revision
      ->id(),
  ));
}