You are here

public function XmlSitemapDeleteForm::getCancelUrl in XML sitemap 8

Same name and namespace in other branches
  1. 2.x src/Form/XmlSitemapDeleteForm.php \Drupal\xmlsitemap\Form\XmlSitemapDeleteForm::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/XmlSitemapDeleteForm.php, line 24

Class

XmlSitemapDeleteForm
Builds the form to delete a sitemap.

Namespace

Drupal\xmlsitemap\Form

Code

public function getCancelUrl() {
  return new Url('xmlsitemap.admin_search_list');
}