public function ModuleHandler::invokeAll in Service Container 7.2
Same name and namespace in other branches
- 7 src/Extension/ModuleHandler.php \Drupal\service_container\Extension\ModuleHandler::invokeAll()
Invokes a hook in all enabled modules that implement it.
Parameters
string $hook: The name of the hook to invoke.
array $args: Arguments to pass to the hook.
Return value
array An array of return values of the hook implementations. If modules return arrays from their implementations, those are merged into one array.
Overrides ModuleHandlerInterface::invokeAll
File
- src/
Extension/ ModuleHandler.php, line 206 - Contains Drupal\service_container\Extension\ModuleHandler.
Class
- ModuleHandler
- Class that manages modules in a Drupal installation.
Namespace
Drupal\service_container\ExtensionCode
public function invokeAll($hook, array $args = array()) {
return $this->drupal7
->module_invoke_all($hook, $args);
}