You are here

public function MaestroProcess::getOwner in Maestro 8.2

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

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/MaestroProcess.php, line 83

Class

MaestroProcess
Defines the MaestroProcess entity.

Namespace

Drupal\maestro\Entity

Code

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