public function ImcePluginManager::invokeAll in IMCE 8
Same name and namespace in other branches
- 8.2 src/ImcePluginManager.php \Drupal\imce\ImcePluginManager::invokeAll()
Invokes a hook in all available plugins.
Return value
array An array of results keyed by plugin id.
5 calls to ImcePluginManager::invokeAll()
- ImcePluginManager::alterProfileForm in src/
ImcePluginManager.php - Alters an Imce Profile form.
- ImcePluginManager::buildPage in src/
ImcePluginManager.php - Builds imce page.
- ImcePluginManager::permissionInfo in src/
ImcePluginManager.php - Returns folder permission definitions.
- ImcePluginManager::processUserConf in src/
ImcePluginManager.php - Processes profile configuration for a user.
- ImcePluginManager::validateProfileForm in src/
ImcePluginManager.php - Validates an Imce Profile form.
File
- src/
ImcePluginManager.php, line 107
Class
- ImcePluginManager
- Provides a plugin manager for Imce Plugins.
Namespace
Drupal\imceCode
public function invokeAll($hook, &$a = NULL, $b = NULL, $c = NULL) {
$ret = [];
if (in_array($hook, $this
->getHooks())) {
foreach ($this
->getInstances() as $plugin => $instance) {
$ret[$plugin] = $instance
->{$hook}($a, $b, $c);
}
}
return $ret;
}