public function Job::getRemoteTargetLanguage

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 480

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

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