You are here

public function Job::getOwner in Translation Management Tool 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Job.php, line 985

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getOwner() {
  return $this
    ->get('uid')->entity;
}