You are here

public function Job::getOwnerId in Translation Management Tool 8

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

1 call to Job::getOwnerId()
Job::isAuthor in src/Entity/Job.php
Checks whether the user described by $account is the author of this job.

File

src/Entity/Job.php, line 992

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

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