You are here

public function GoogleAnalyticsCounterAuthManager::isAuthenticated in Google Analytics Counter 8.3

Check to make sure we are authenticated with google.

Return value

bool True if there is a refresh token set.

Overrides GoogleAnalyticsCounterAuthManagerInterface::isAuthenticated

File

src/GoogleAnalyticsCounterAuthManager.php, line 93

Class

GoogleAnalyticsCounterAuthManager
Class GoogleAnalyticsAuthManager.

Namespace

Drupal\google_analytics_counter

Code

public function isAuthenticated() {
  return $this->state
    ->get('google_analytics_counter.access_token') != NULL ? TRUE : FALSE;
}