You are here

public function SitewideAlertRevisionRevertForm::getCancelUrl in Sitewide Alert 8

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/SitewideAlertRevisionRevertForm.php, line 84

Class

SitewideAlertRevisionRevertForm
Provides a form for reverting a Sitewide Alert revision.

Namespace

Drupal\sitewide_alert\Form

Code

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