You are here

public function GoogleApiServiceClient::getAccessToken in Google API PHP Client 8.3

Same name and namespace in other branches
  1. 8.4 src/Entity/GoogleApiServiceClient.php \Drupal\google_api_client\Entity\GoogleApiServiceClient::getAccessToken()

Function returns Json of access_token.

Return value

array Returns the access token.

Overrides GoogleApiServiceClientInterface::getAccessToken

File

src/Entity/GoogleApiServiceClient.php, line 144

Class

GoogleApiServiceClient
Defines the GoogleApiServiceClient entity.

Namespace

Drupal\google_api_client\Entity

Code

public function getAccessToken() {
  return Json::decode($this->access_token);
}