You are here

public function Job::getSourceLanguage in Translation Management Tool 8

Returns the source language.

Return value

\Drupal\Core\Language\LanguageInterface The source language.

Overrides JobInterface::getSourceLanguage

1 call to Job::getSourceLanguage()
Job::label in src/Entity/Job.php
Gets the label of the entity.

File

src/Entity/Job.php, line 201

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getSourceLanguage() {
  return $this
    ->get('source_language')->language;
}