public function TestTranslator::getDefaultRemoteLanguagesMappings

Specifies default mappings for local to remote language codes.

This method can be used in case we know in advance what language codes are used by the remote translator and to which local language codes they correspond.

Return value

array An array of local => remote language codes.

Overrides TranslatorPluginBase::getDefaultRemoteLanguagesMappings

File

tmgmt_test/src/Plugin/tmgmt/Translator/TestTranslator.php, line 45

Class

TestTranslator
Test source plugin implementation.

Namespace

Drupal\tmgmt_test\Plugin\tmgmt\Translator

Code

public function getDefaultRemoteLanguagesMappings() {
  return array(
    'en' => 'en-us',
    'de' => 'de-ch',
  );
}