public function JobItem::getTranslator in Translation Management Tool 8
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 344
Class
- JobItem
- Entity class for the tmgmt_job_item entity.
Namespace
Drupal\tmgmt\EntityCode
public function getTranslator() {
if ($this
->hasTranslator()) {
return $this
->getJob()
->getTranslator();
}
return NULL;
}