public function GoogleApiServiceClient::setAccessToken in Google API PHP Client 8.4
Same name and namespace in other branches
- 8.3 src/Entity/GoogleApiServiceClient.php \Drupal\google_api_client\Entity\GoogleApiServiceClient::setAccessToken()
Function set Access Token.
Parameters
array $token: Pass array of Access Token for the account.
Overrides GoogleApiServiceClientInterface::setAccessToken
File
- src/
Entity/ GoogleApiServiceClient.php, line 217
Class
- GoogleApiServiceClient
- Defines the GoogleApiServiceClient entity.
Namespace
Drupal\google_api_client\EntityCode
public function setAccessToken(array $access_token) {
return $this->access_token = Json::encode($access_token);
}