You are here

public function UsersKeyDeleteForm::getCancelUrl in JSON Web Token Authentication (JWT) 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

modules/users_jwt/src/Form/UsersKeyDeleteForm.php, line 108

Class

UsersKeyDeleteForm
Class UsersKeyForm.

Namespace

Drupal\users_jwt\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('users_jwt.key_list', [
    'user' => $this->key->uid,
  ]);
}