public function Workspace::setOwner in Opigno Moxtra 8
Same name and namespace in other branches
- 3.x src/Entity/Workspace.php \Drupal\opigno_moxtra\Entity\Workspace::setOwner()
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 77
Class
- Workspace
- Defines the Workspace entity.
Namespace
Drupal\opigno_moxtra\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('user_id', $account
->id());
return $this;
}