You are here

public function Workspace::getOwner in Multiversion 8

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 205

Class

Workspace
The workspace entity class.

Namespace

Drupal\multiversion\Entity

Code

public function getOwner() {
  return $this
    ->get('uid')->entity;
}