You are here

public function GoogleImageSitemapDeleteForm::getCancelUrl in Google Image Sitemap 1.0.x

Same name and namespace in other branches
  1. 8 src/Form/GoogleImageSitemapDeleteForm.php \Drupal\google_image_sitemap\Form\GoogleImageSitemapDeleteForm::getCancelUrl()
  2. 2.0.x src/Form/GoogleImageSitemapDeleteForm.php \Drupal\google_image_sitemap\Form\GoogleImageSitemapDeleteForm::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/GoogleImageSitemapDeleteForm.php, line 38

Class

GoogleImageSitemapDeleteForm
Defines a confirmation form for deleting mymodule data.

Namespace

Drupal\google_image_sitemap\Form

Code

public function getCancelUrl() {
  return new Url('my_module.myroute');
}