You are here

public function Job::getRemoteSourceLanguage in Translation Management Tool 8

Returns remote source language code.

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

Return value

string Remote language code.

Overrides JobInterface::getRemoteSourceLanguage

File

src/Entity/Job.php, line 467

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getRemoteSourceLanguage() {
  return $this
    ->getTranslator()
    ->mapToRemoteLanguage($this
    ->getSourceLangcode());
}