public function FormatManager::getLabels

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

Code

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