You are here

public function IndexReindexConfirmForm::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/IndexReindexConfirmForm.php, line 61

Class

IndexReindexConfirmForm
Defines a confirm form for reindexing 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(),
  ]);
}