You are here

public function ReferenceRevisionDeleteForm::getCancelUrl in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/Form/ReferenceRevisionDeleteForm.php \Drupal\bibcite_entity\Form\ReferenceRevisionDeleteForm::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

modules/bibcite_entity/src/Form/ReferenceRevisionDeleteForm.php, line 97

Class

ReferenceRevisionDeleteForm
Provides a form for reverting a reference revision.

Namespace

Drupal\bibcite_entity\Form

Code

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