You are here

public function TMGMTTranslatorPluginControllerInterface::getSupportedLanguagePairs in Translation Management Tool 7

Returns supported language pairs.

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

Parameters

TMGMTTranslator $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 TMGMTTranslatorPluginControllerInterface::getSupportedLanguagePairs()
TMGMTDefaultTranslatorPluginController::getSupportedLanguagePairs in plugin/tmgmt.plugin.translator.inc
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

plugin/tmgmt.plugin.interface.translator.inc, line 178
Contains the source plugin interface.

Class

TMGMTTranslatorPluginControllerInterface
Interface for service plugin controllers.

Code

public function getSupportedLanguagePairs(TMGMTTranslator $translator);