You are here

public function GoogleApiClient::setAuthenticated 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::setAuthenticated()
  2. 8.2 src/Entity/GoogleApiClient.php \Drupal\google_api_client\Entity\GoogleApiClient::setAuthenticated()

Function set whether the account is authenticated.

Parameters

bool $authentication: Pass TRUE if authenticated else FALSE.

Overrides GoogleApiClientInterface::setAuthenticated

1 call to GoogleApiClient::setAuthenticated()
GoogleApiClient::save in src/Entity/GoogleApiClient.php

File

src/Entity/GoogleApiClient.php, line 314

Class

GoogleApiClient
Defines the GoogleApiClient entity.

Namespace

Drupal\google_api_client\Entity

Code

public function setAuthenticated($authentication) {
  return $this
    ->set('is_authenticated', $authentication);
}