You are here

public function Project::getOwner in Drupal PM (Project Management) 4.x

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

modules/pm_project/src/Entity/Project.php, line 149

Class

Project
Defines the Project entity.

Namespace

Drupal\pm_project\Entity

Code

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