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