You are here

public function BUEditorPluginManager::getInstances in BUEditor 8

Same name and namespace in other branches
  1. 8.2 src/BUEditorPluginManager.php \Drupal\bueditor\BUEditorPluginManager::getInstances()

Returns all available plugin instances.

Return value

array A an array plugin intances.

1 call to BUEditorPluginManager::getInstances()
BUEditorPluginManager::invokeAll in src/BUEditorPluginManager.php
Invokes a hook in all available plugins.

File

src/BUEditorPluginManager.php, line 78

Class

BUEditorPluginManager
Provides a plugin manager for BUEditor Plugins.

Namespace

Drupal\bueditor

Code

public function getInstances() {
  if (!isset($this->instances)) {
    $this->instances = [];
    foreach ($this
      ->getDefinitions() as $id => $def) {
      $this->instances[$id] = $this
        ->createInstance($id);
    }
  }
  return $this->instances;
}