You are here

public function TMGMTJob::getTranslatorController in Translation Management Tool 7

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

Return value

TMGMTTranslatorPluginControllerInterface The controller of the translator plugin.

3 calls to TMGMTJob::getTranslatorController()
TMGMTJob::abortTranslation in entity/tmgmt.entity.job.inc
Attempts to abort the translation job. Already accepted jobs can not be aborted, submitted jobs only if supported by the translator plugin. Always use this method if you want to abort a translation job.
TMGMTJob::getSetting in entity/tmgmt.entity.job.inc
Retrieves a setting value from the job settings. Pulls the default values (if defined) from the plugin controller.
TMGMTJob::requestTranslation in entity/tmgmt.entity.job.inc
Request the translation of a job from the translator.

File

entity/tmgmt.entity.job.inc, line 664

Class

TMGMTJob
Entity class for the tmgmt_job entity.

Code

public function getTranslatorController() {
  if ($translator = $this
    ->getTranslator($this)) {
    return $translator
      ->getController();
  }
  return FALSE;
}