You are here

public function ApiKeyDeleteConfirmForm::getCancelUrl in Services API Key Authentication 8.2

Same name and namespace in other branches
  1. 3.0.x src/Form/ApiKeyDeleteConfirmForm.php \Drupal\services_api_key_auth\Form\ApiKeyDeleteConfirmForm::getCancelUrl()
  2. 2.0.x src/Form/ApiKeyDeleteConfirmForm.php \Drupal\services_api_key_auth\Form\ApiKeyDeleteConfirmForm::getCancelUrl()

Overrides EntityDeleteFormTrait::getCancelUrl

File

src/Form/ApiKeyDeleteConfirmForm.php, line 59

Class

ApiKeyDeleteConfirmForm
Defines a confirm form for deleting a server.

Namespace

Drupal\services_api_key_auth\Form

Code

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