public function TranslatorManager::getLabels in Translation Management Tool 8
Returns the translator plugin labels.
Return value
array Array of plugin labels, keyed by the plugin id.
File
- src/
TranslatorManager.php, line 62
Class
- TranslatorManager
- A plugin manager for translator plugins.
Namespace
Drupal\tmgmtCode
public function getLabels() {
$list = array();
foreach ($this
->getDefinitions() as $plugin => $definition) {
$list[$plugin] = $definition['label'];
}
return $list;
}