You are here

public function GoogleAnalyticsCounterRevokeForm::getCancelUrl in Google Analytics Counter 8.3

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to GoogleAnalyticsCounterRevokeForm::getCancelUrl()
GoogleAnalyticsCounterRevokeForm::submitForm in src/Form/GoogleAnalyticsCounterRevokeForm.php
Form submission handler.

File

src/Form/GoogleAnalyticsCounterRevokeForm.php, line 49

Class

GoogleAnalyticsCounterRevokeForm
Class GoogleAnalyticsCounterRevokeForm.

Namespace

Drupal\google_analytics_counter\Form

Code

public function getCancelUrl() {

  // todo: Send the user back to the form from which he came.
  return new Url('google_analytics_counter.admin_auth_form');
}