You are here

public function GoogleApiClient::getOwner in Google API PHP Client 8.4

Same name and namespace in other branches
  1. 8.2 src/Entity/GoogleApiClient.php \Drupal\google_api_client\Entity\GoogleApiClient::getOwner()
  2. 8.3 src/Entity/GoogleApiClient.php \Drupal\google_api_client\Entity\GoogleApiClient::getOwner()

Function returns Owner Id of the account.

Return value

\Drupal\user\Entity\User Returns Owner object.

Overrides GoogleApiClientInterface::getOwner

File

src/Entity/GoogleApiClient.php, line 221

Class

GoogleApiClient
Defines the GoogleApiClient entity.

Namespace

Drupal\google_api_client\Entity

Code

public function getOwner() {
  return $this
    ->get('uid')->entity;
}