You are here

public function SearchIndexWipeConfirm::getCancelUrl in Search Index Wipe 8

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 SearchIndexWipeConfirm::getCancelUrl()
SearchIndexWipeConfirm::submitForm in src/Form/SearchIndexWipeConfirm.php
Form submission handler.

File

src/Form/SearchIndexWipeConfirm.php, line 41

Class

SearchIndexWipeConfirm
Class SearchIndexWipeConfirm.

Namespace

Drupal\searchindex_wipe\Form

Code

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