You are here

public function MaestroProcess::getOwnerId in Maestro 3.x

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

Returns the entity owner's user ID.

Return value

int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.

Overrides EntityOwnerInterface::getOwnerId

File

src/Entity/MaestroProcess.php, line 90

Class

MaestroProcess
Defines the MaestroProcess entity.

Namespace

Drupal\maestro\Entity

Code

public function getOwnerId() {
  return $this
    ->get('initiator_uid')->target_id;
}