You are here

public function TMGMTJob::getTranslator in Translation Management Tool 7

Returns the translator for this job.

Return value

TMGMTTranslator The translator entity or FALSE if there was a problem.

3 calls to TMGMTJob::getTranslator()
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::getTranslatorController in entity/tmgmt.entity.job.inc
Returns the translator plugin controller of the translator of this job.
TMGMTJob::isTranslatable in entity/tmgmt.entity.job.inc
Checks whether a job is translatable.

File

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

Class

TMGMTJob
Entity class for the tmgmt_job entity.

Code

public function getTranslator() {
  if (isset($this->translator)) {
    return tmgmt_translator_load($this->translator);
  }
  return FALSE;
}