You are here

public function GoogleAnalyticsReportsApiAdminSettingsForm::adminSubmitRevoke in Google Analytics Reports 8.3

Revoke Google Analytics access token.

File

google_analytics_reports_api/src/Form/GoogleAnalyticsReportsApiAdminSettingsForm.php, line 271

Class

GoogleAnalyticsReportsApiAdminSettingsForm
Represents the admin settings form for google_analytics_reports_api.

Namespace

Drupal\google_analytics_reports_api\Form

Code

public function adminSubmitRevoke(array &$form, FormStateInterface $form_state) {
  google_analytics_reports_api_revoke();
  $this
    ->messenger()
    ->addMessage($this
    ->t('Access token has been successfully revoked.'));
}