You are here

public function ReindexConfirm::getCancelUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 57
Contains \Drupal\search\Form\ReindexConfirm.

Class

ReindexConfirm
Provides the search reindex confirmation form.

Namespace

Drupal\search\Form

Code

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