You are here

public function ImcePluginManager::getInstances in IMCE 8.2

Same name and namespace in other branches
  1. 8 src/ImcePluginManager.php \Drupal\imce\ImcePluginManager::getInstances()

Returns all available plugin instances.

Return value

array A an array plugin intances.

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

File

src/ImcePluginManager.php, line 78

Class

ImcePluginManager
Provides a plugin manager for Imce Plugins.

Namespace

Drupal\imce

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;
}