You are here

public function JobItem::hasTranslator in Translation Management Tool 8

Checks if the translator exists.

Return value

bool TRUE if exists, FALSE otherwise.

Overrides JobItemInterface::hasTranslator

1 call to JobItem::hasTranslator()
JobItem::getTranslator in src/Entity/JobItem.php
Returns the translator for this job item.

File

src/Entity/JobItem.php, line 354

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

public function hasTranslator() {
  if ($this
    ->getJob() && $this
    ->getJob()
    ->hasTranslator()) {
    return TRUE;
  }
  return FALSE;
}