public function GoogleApiClient::setOwner in Google API PHP Client 8.3
Same name and namespace in other branches
- 8.4 src/Entity/GoogleApiClient.php \Drupal\google_api_client\Entity\GoogleApiClient::setOwner()
- 8.2 src/Entity/GoogleApiClient.php \Drupal\google_api_client\Entity\GoogleApiClient::setOwner()
Function set whether the account is authenticated.
Parameters
\Drupal\user\UserInterface $account: Pass User object for the owner.
Overrides GoogleApiClientInterface::setOwner
File
- src/
Entity/ GoogleApiClient.php, line 336
Class
- GoogleApiClient
- Defines the GoogleApiClient entity.
Namespace
Drupal\google_api_client\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('uid', $account
->id());
return $this;
}