You are here

public function LocaleSource::getSourceLangCode in Translation Management Tool 8

Gets language code of the job item source.

Parameters

\Drupal\tmgmt\JobItemInterface $job_item: The job item.

Return value

string Language code.

Overrides SourcePluginInterface::getSourceLangCode

File

sources/locale/src/Plugin/tmgmt/Source/LocaleSource.php, line 227

Class

LocaleSource
Translation Source plugin for locale strings.

Namespace

Drupal\tmgmt_locale\Plugin\tmgmt\Source

Code

public function getSourceLangCode(JobItemInterface $job_item) {

  // For the locale source English is always the source language.
  return 'en';
}