You are here

public function GoogleApiServiceClient::setScopes 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::setScopes()

Function set Scopes.

Parameters

array $scopes: Pass array of scopes for the account.

Overrides GoogleApiServiceClientInterface::setScopes

File

src/Entity/GoogleApiServiceClient.php, line 224

Class

GoogleApiServiceClient
Defines the GoogleApiServiceClient entity.

Namespace

Drupal\google_api_client\Entity

Code

public function setScopes(array $scopes) {
  return $this->scopes = $scopes;
}