You are here

public function ReindexConfirm::getCancelUrl in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/search/src/Form/ReindexConfirm.php \Drupal\search\Form\ReindexConfirm::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 ReindexConfirm::getCancelUrl()
ReindexConfirm::submitForm in core/modules/search/src/Form/ReindexConfirm.php
Form submission handler.

File

core/modules/search/src/Form/ReindexConfirm.php, line 54

Class

ReindexConfirm
Provides the search reindex confirmation form.

Namespace

Drupal\search\Form

Code

public function getCancelUrl() {
  return new Url('entity.search_page.collection');
}