function ModuleHandlerInterface::invoke
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::invoke()
- 10 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::invoke()
- 11.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::invoke()
Invokes a hook in a particular module.
Parameters
string $module: The name of the module (without the .module extension).
string $hook: The name of the hook to invoke.
array $args: Arguments to pass to the hook implementation.
Return value
mixed The return value of the hook implementation.
1 method overrides ModuleHandlerInterface::invoke()
- ModuleHandler::invoke in core/
lib/ Drupal/ Core/ Extension/ ModuleHandler.php - Invokes a hook in a particular module.
File
-
core/
lib/ Drupal/ Core/ Extension/ ModuleHandlerInterface.php, line 223
Class
- ModuleHandlerInterface
- Interface for classes that manage a set of enabled modules.
Namespace
Drupal\Core\ExtensionCode
public function invoke($module, $hook, array $args = []);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.