You are here

public function MaestroQueue::getOwnerId in Maestro 3.x

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

Class

MaestroQueue
Defines the MaestroQueue entity.

Namespace

Drupal\maestro\Entity

Code

public function getOwnerId() {
  return $this
    ->get('uid')->value;
}