public function ConfigSource::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

1 call to ConfigSource::getSourceLangCode()
ConfigSource::getExistingLangCodes in sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php
Gets existing translation language codes of the job item source.

File

sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php, line 341

Class

ConfigSource
Content entity source plugin controller.

Namespace

Drupal\tmgmt_config\Plugin\tmgmt\Source

Code

public function getSourceLangCode(JobItemInterface $job_item) {
  $config_mapper = $this
    ->getMapper($job_item);
  return $config_mapper
    ->getLangcode();
}