public function FormatManager::getLabels in Translation Management Tool 8
Returns an array of file format plugin labels.
File
- translators/
tmgmt_file/ src/ Format/ FormatManager.php, line 63
Class
- FormatManager
- A plugin manager for file format plugins.
Namespace
Drupal\tmgmt_file\FormatCode
public function getLabels() {
$labels = array();
foreach ($this
->getDefinitions() as $id => $definition) {
$labels[$id] = $definition['label'];
}
return $labels;
}