You are here

public function Job::getRemoteTargetLanguage in Translation Management Tool 8

Returns remote target language code.

Maps the target langcode of the job from local to remote.

Return value

string Remote language code.

Overrides JobInterface::getRemoteTargetLanguage

File

src/Entity/Job.php, line 474

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getRemoteTargetLanguage() {
  return $this
    ->getTranslator()
    ->mapToRemoteLanguage($this
    ->getTargetLangcode());
}