You are here

public function OAuthDeleteConsumerForm::getCancelUrl in OAuth 1.0 8.2

Same name and namespace in other branches
  1. 8 src/Form/OAuthDeleteConsumerForm.php \Drupal\oauth\Form\OAuthDeleteConsumerForm::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/OAuthDeleteConsumerForm.php, line 97
Contains \Drupal\oauth\Form\OAuthDeleteConsumerForm.

Class

OAuthDeleteConsumerForm
Provides an oauth_consumer deletion confirmation form.

Namespace

Drupal\oauth\Form

Code

public function getCancelUrl() {
  return new Url('oauth.user_consumer', [
    'user' => \Drupal::currentUser()
      ->id(),
  ]);
}