You are here

public function WorkableItem::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 WorkableItemInterface::getOwner

File

modules/pm_project/src/Entity/WorkableItem.php, line 173

Class

WorkableItem
Provides Workable Item.

Namespace

Drupal\pm_project\Entity

Code

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