You are here

public function MaestroProductionAssignments::getOwnerId in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/MaestroProductionAssignments.php \Drupal\maestro\Entity\MaestroProductionAssignments::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/MaestroProductionAssignments.php, line 90

Class

MaestroProductionAssignments
Defines the MaestroProductionAssignments entity.

Namespace

Drupal\maestro\Entity

Code

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