public function Workspace::getOwner in Workspace 8.2
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- src/
Entity/ Workspace.php, line 166
Class
- Workspace
- The workspace entity class.
Namespace
Drupal\workspace\EntityCode
public function getOwner() {
return $this
->get('uid')->entity;
}