You are here

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

Class

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