You are here

public function Job::getTranslatorPlugin in Translation Management Tool 8

Returns the translator plugin of the translator of this job.

Return value

\Drupal\tmgmt\TranslatorPluginInterface The translator plugin instance.

Throws

\Drupal\tmgmt\TMGMTException Throws an exception when there is no translator assigned or when the translator is missing the plugin.

Overrides JobInterface::getTranslatorPlugin

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

File

src/Entity/Job.php, line 794

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getTranslatorPlugin() {
  return $this
    ->getTranslator()
    ->getPlugin();
}