You are here

public function GoogleApiClient::getAuthenticated in Google API PHP Client 8.3

Same name and namespace in other branches
  1. 8.4 src/Entity/GoogleApiClient.php \Drupal\google_api_client\Entity\GoogleApiClient::getAuthenticated()
  2. 8.2 src/Entity/GoogleApiClient.php \Drupal\google_api_client\Entity\GoogleApiClient::getAuthenticated()

Function returns whether the account is Authenticated.

Return value

bool Returns TRUE if authenticated else FALSE.

Overrides GoogleApiClientInterface::getAuthenticated

File

src/Entity/GoogleApiClient.php, line 214

Class

GoogleApiClient
Defines the GoogleApiClient entity.

Namespace

Drupal\google_api_client\Entity

Code

public function getAuthenticated() {
  return $this
    ->get('is_authenticated')->value;
}