public function JobItem::getTranslatorPlugin

Returns the translator plugin of the translator of this job item.

Return value

\Drupal\tmgmt\TranslatorPluginInterface|null The translator plugin instance or NULL if there is none.

Overrides JobItemInterface::getTranslatorPlugin

1 call to JobItem::getTranslatorPlugin()
JobItem::abortTranslation in src/Entity/JobItem.php
Attempts to abort the translation job item.

File

src/Entity/JobItem.php, line 372

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getTranslatorPlugin() {
  if ($job = $this
    ->getJob()) {
    return $job
      ->getTranslatorPlugin();
  }
  return NULL;
}