public function ConfigSource::getExistingLangCodes

Gets existing translation language codes of the job item source.

Returns language codes that can be used as the source language for a translation job.

Parameters

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

Return value

array Array of language codes.

Overrides SourcePluginBase::getExistingLangCodes

File

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

Class

ConfigSource
Content entity source plugin controller.

Namespace

Drupal\tmgmt_config\Plugin\tmgmt\Source

Code

public function getExistingLangCodes(JobItemInterface $job_item) {

  // @todo Support additional source language codes.
  return [
    $this
      ->getSourceLangCode($job_item),
  ];
}