You are here

public function SimpleMegaMenuRevisionRevertForm::getCancelUrl in Simple Mega Menu 8

Same name and namespace in other branches
  1. 2.0.x src/Form/SimpleMegaMenuRevisionRevertForm.php \Drupal\simple_megamenu\Form\SimpleMegaMenuRevisionRevertForm::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/SimpleMegaMenuRevisionRevertForm.php, line 93

Class

SimpleMegaMenuRevisionRevertForm
Provides a form for reverting a Simple mega menu revision.

Namespace

Drupal\simple_megamenu\Form

Code

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