You are here

public function GoogleApiClientRevokeForm::getCancelUrl in Google API PHP Client 8.3

Same name and namespace in other branches
  1. 8.4 src/Form/GoogleApiClientRevokeForm.php \Drupal\google_api_client\Form\GoogleApiClientRevokeForm::getCancelUrl()
  2. 8.2 src/Form/GoogleApiClientRevokeForm.php \Drupal\google_api_client\Form\GoogleApiClientRevokeForm::getCancelUrl()

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/GoogleApiClientRevokeForm.php, line 40

Class

GoogleApiClientRevokeForm
Provides a form for revoking a google_api_client entity.

Namespace

Drupal\google_api_client\Form

Code

public function getCancelUrl() {
  return new Url('entity.google_api_client.collection');
}