public function LocaleSource::getSourceLangCode

Gets language code of the job item source.

Parameters

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

Return value

string|false Language code or FALSE for unknown.

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';
}