public function JobItem::getTranslator

Returns the translator for this job item.

Return value

\Drupal\tmgmt\TranslatorInterface The translator entity or NULL if there is none.

Overrides JobItemInterface::getTranslator

File

src/Entity/JobItem.php, line 352

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getTranslator() {
  if ($this
    ->hasTranslator()) {
    return $this
      ->getJob()
      ->getTranslator();
  }
  return NULL;
}