You are here

public function JobItem::getTranslatorPlugin in Translation Management Tool 8

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 364

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;
}