public function Workspace::setOwnerId in Opigno Moxtra 8
Same name and namespace in other branches
- 3.x src/Entity/Workspace.php \Drupal\opigno_moxtra\Entity\Workspace::setOwnerId()
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- src/
Entity/ Workspace.php, line 92
Class
- Workspace
- Defines the Workspace entity.
Namespace
Drupal\opigno_moxtra\EntityCode
public function setOwnerId($uid) {
$this
->set('user_id', $uid);
return $this;
}