You are here

public function Workspace::getOwner in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 src/Entity/Workspace.php \Drupal\opigno_moxtra\Entity\Workspace::getOwner()

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 70

Class

Workspace
Defines the Workspace entity.

Namespace

Drupal\opigno_moxtra\Entity

Code

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