public function ImcePluginManager::getInstances in IMCE 8
Same name and namespace in other branches
- 8.2 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\imceCode
public function getInstances() {
if (!isset($this->instances)) {
$this->instances = [];
foreach ($this
->getDefinitions() as $id => $def) {
$this->instances[$id] = $this
->createInstance($id);
}
}
return $this->instances;
}