You are here

public static function GoogleAnalyticsCounterHelper::gacDeleteState in Google Analytics Counter 8.3

Delete stored state values.

2 calls to GoogleAnalyticsCounterHelper::gacDeleteState()
GoogleAnalyticsCounterRevokeForm::submitForm in src/Form/GoogleAnalyticsCounterRevokeForm.php
Form submission handler.
google_analytics_counter_uninstall in ./google_analytics_counter.install
Implements hook_uninstall().

File

src/GoogleAnalyticsCounterHelper.php, line 120

Class

GoogleAnalyticsCounterHelper
Provides Google Analytics Counter helper functions.

Namespace

Drupal\google_analytics_counter

Code

public static function gacDeleteState() {
  \Drupal::state()
    ->deleteMultiple([
    'google_analytics_counter.access_token',
    'google_analytics_counter.expires_at',
    'google_analytics_counter.refresh_token',
    'google_analytics_counter.total_nodes',
    'google_analytics_counter.data_last_refreshed',
    'google_analytics_counter.profile_ids',
    'google_analytics_counter.data_step',
    'google_analytics_counter.most_recent_query',
    'google_analytics_counter.total_pageviews',
    'google_analytics_counter.total_paths',
  ]);
}