You are here

public function SharePluginManager::getLabels in Share Message 8

Returns the Share Message plugin labels.

Return value

array Array of plugin labels, keyed by the plugin id.

File

src/SharePluginManager.php, line 37

Class

SharePluginManager
A plugin manager for Share Message plugins.

Namespace

Drupal\sharemessage

Code

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