You are here

public function FlaggingCollectionRevisionRevertForm::getCancelUrl in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/Form/FlaggingCollectionRevisionRevertForm.php \Drupal\flag_lists\Form\FlaggingCollectionRevisionRevertForm::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

src/Form/FlaggingCollectionRevisionRevertForm.php, line 82

Class

FlaggingCollectionRevisionRevertForm
Provides a form for reverting a Flagging collection revision.

Namespace

Drupal\flag_lists\Form

Code

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