You are here

public function NodeRevisionDeleteForm::getCancelUrl in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::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/NodeRevisionDeleteForm.php, line 107

Class

NodeRevisionDeleteForm
Provides a form for deleting a node revision.

Namespace

Drupal\node\Form

Code

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