function NodeRevisionDeleteForm::getCancelUrl

Same name in other branches
  1. 9 core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::getCancelUrl()
  2. 8.9.x core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::getCancelUrl()
  3. 11.x core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::getCancelUrl()

Overrides ConfirmFormInterface::getCancelUrl

File

core/modules/node/src/Form/NodeRevisionDeleteForm.php, line 120

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(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.