You are here

public function Gauth::getOwner in Google Auth 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Gauth.php, line 194

Class

Gauth
Defines the Gauth entity.

Namespace

Drupal\gauth\Entity

Code

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