public function TMGMTTranslatorPluginControllerInterface::getSupportedRemoteLanguages in Translation Management Tool 7
Gets all supported languages of the translator.
This list of all language codes used by the remote translator is then used for example in the translator settings form to select which remote language code correspond to which local language code.
Parameters
TMGMTTranslator $translator: Translator entity for which to get supported languages.
Return value
array An array of language codes which are provided by the translator (remote language codes).
Related topics
1 method overrides TMGMTTranslatorPluginControllerInterface::getSupportedRemoteLanguages()
- TMGMTDefaultTranslatorPluginController::getSupportedRemoteLanguages in plugin/
tmgmt.plugin.translator.inc - Gets all supported languages of the translator.
File
- plugin/
tmgmt.plugin.interface.translator.inc, line 95 - Contains the source plugin interface.
Class
- TMGMTTranslatorPluginControllerInterface
- Interface for service plugin controllers.
Code
public function getSupportedRemoteLanguages(TMGMTTranslator $translator);