You are here

public function MaestroProcessStatus::getOwnerId in Maestro 8.2

Same name and namespace in other branches
  1. 3.x src/Entity/MaestroProcessStatus.php \Drupal\maestro\Entity\MaestroProcessStatus::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/MaestroProcessStatus.php, line 86

Class

MaestroProcessStatus
Defines the MaestroProcessStatus entity.

Namespace

Drupal\maestro\Entity

Code

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