You are here

public function MaestroProductionAssignments::getOwner in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/MaestroProductionAssignments.php \Drupal\maestro\Entity\MaestroProductionAssignments::getOwner()

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/MaestroProductionAssignments.php, line 83

Class

MaestroProductionAssignments
Defines the MaestroProductionAssignments entity.

Namespace

Drupal\maestro\Entity

Code

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