public function TranslatorManager::getLabels

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\tmgmt

Code

public function getLabels() {
  $list = array();
  foreach ($this
    ->getDefinitions() as $plugin => $definition) {
    $list[$plugin] = $definition['label'];
  }
  return $list;
}