public function TranslatorPluginInterface::getSupportedTargetLanguages in Translation Management Tool 8
Returns all available target languages that are supported by this service when given a source language.
Parameters
TranslatorInterface $translator: The translator entity.
$source_language: The source language.
Return value
array An array of remote languages in ISO format.
Related topics
1 method overrides TranslatorPluginInterface::getSupportedTargetLanguages()
- TranslatorPluginBase::getSupportedTargetLanguages in src/
TranslatorPluginBase.php - Returns all available target languages that are supported by this service when given a source language.
File
- src/
TranslatorPluginInterface.php, line 85
Class
- TranslatorPluginInterface
- Interface for service plugin controllers.
Namespace
Drupal\tmgmtCode
public function getSupportedTargetLanguages(TranslatorInterface $translator, $source_language);