ModuleHandler::invoke
public function ModuleHandler::invoke
public ModuleHandler::invoke($module, $hook, array $args = array())
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.
Overrides ModuleHandlerInterface::invoke
File
- core/lib/Drupal/Core/Extension/登录查看完整内容