You are here

public function IndexRebuildTrackerConfirmForm::getCancelUrl in Search API 8

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/IndexRebuildTrackerConfirmForm.php, line 43

Class

IndexRebuildTrackerConfirmForm
Defines a confirm form for clearing an index.

Namespace

Drupal\search_api\Form

Code

public function getCancelUrl() {
  return new Url('entity.search_api_index.canonical', [
    'search_api_index' => $this->entity
      ->id(),
  ]);
}