public function Job::getRemoteSourceLanguage

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 473

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

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