public function TranslatorPluginInterface::getSupportedLanguagePairs

Returns supported language pairs.

This info may be used by other plugins to find out what language pairs can handle the translator.

Parameters

\Drupal\tmgmt\TranslatorInterface $translator: The translator entity.

Return value

array List of language pairs where a pair is an associative array of source_language and target_language. Example: array( array('source_language' => 'en-US', 'target_language' => 'de-DE'), array('source_language' => 'en-US', 'target_language' => 'de-CH'), )

Related topics

1 method overrides TranslatorPluginInterface::getSupportedLanguagePairs()
TranslatorPluginBase::getSupportedLanguagePairs in src/TranslatorPluginBase.php
Default implementation that gets target languages for each remote language. This approach is ineffective and therefore it is advised that a plugin should provide own implementation.

File

src/TranslatorPluginInterface.php, line 107

Class

TranslatorPluginInterface
Interface for service plugin controllers.

Namespace

Drupal\tmgmt

Code

public function getSupportedLanguagePairs(TranslatorInterface $translator);