You are here

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

Class

ServerClearConfirmForm
Defines a confirm form for clearing a server.

Namespace

Drupal\search_api\Form

Code

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