You are here

public function GoogleImageSitemapDeleteConfirmForm::getCancelUrl in Google Image Sitemap 8

Same name and namespace in other branches
  1. 2.0.x src/Form/GoogleImageSitemapDeleteConfirmForm.php \Drupal\google_image_sitemap\Form\GoogleImageSitemapDeleteConfirmForm::getCancelUrl()
  2. 1.0.x src/Form/GoogleImageSitemapDeleteConfirmForm.php \Drupal\google_image_sitemap\Form\GoogleImageSitemapDeleteConfirmForm::getCancelUrl()

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to GoogleImageSitemapDeleteConfirmForm::getCancelUrl()
GoogleImageSitemapDeleteConfirmForm::submitForm in src/Form/GoogleImageSitemapDeleteConfirmForm.php
Form submission handler.

File

src/Form/GoogleImageSitemapDeleteConfirmForm.php, line 61

Class

GoogleImageSitemapDeleteConfirmForm
Provides a confirmation form before clearing out the logs.

Namespace

Drupal\google_image_sitemap\Form

Code

public function getCancelUrl() {
  return new Url('google_image_sitemap.list');
}