public function Invite::setOwner in Invite 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/ Invite.php, line 195
Class
- Invite
- Defines the Invite entity.
Namespace
Drupal\invite\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('user_id', $account
->id());
return $this;
}