public function Gauth::setOwner in Google Auth 8
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- src/
Entity/ Gauth.php, line 279
Class
- Gauth
- Defines the Gauth entity.
Namespace
Drupal\gauth\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('uid', $account
->id());
return $this;
}