You are here

public function XmlSitemapCustomDeleteForm::getCancelUrl in XML sitemap 8

Same name and namespace in other branches
  1. 2.x xmlsitemap_custom/src/Form/XmlSitemapCustomDeleteForm.php \Drupal\xmlsitemap_custom\Form\XmlSitemapCustomDeleteForm::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 XmlSitemapCustomDeleteForm::getCancelUrl()
XmlSitemapCustomDeleteForm::submitForm in xmlsitemap_custom/src/Form/XmlSitemapCustomDeleteForm.php
Form submission handler.

File

xmlsitemap_custom/src/Form/XmlSitemapCustomDeleteForm.php, line 84

Class

XmlSitemapCustomDeleteForm
Provides a form for deleting a custom link.

Namespace

Drupal\xmlsitemap_custom\Form

Code

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