public function Workspace::setOwner in Multiversion 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/ Workspace.php, line 212
Class
- Workspace
- The workspace entity class.
Namespace
Drupal\multiversion\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('uid', $account
->id());
return $this;
}