public function Status::setOwner in Heartbeat 8
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- modules/
statusmessage/ src/ Entity/ Status.php, line 136
Class
Namespace
Drupal\statusmessage\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('user_id', $account
->id());
return $this;
}