You are here

public function SitewideAlertRevisionDeleteForm::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/SitewideAlertRevisionDeleteForm.php, line 94

Class

SitewideAlertRevisionDeleteForm
Provides a form for deleting 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(),
  ]);
}