public function 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.

...: Arguments to pass to the hook implementation.

Return value

mixed The return value of the hook implementation.

1 method overrides ModuleHandlerInterface::invoke()

File

drupal/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 198
Contains Drupal\Core\Extension\ModuleHandlerInterface.

Class

ModuleHandlerInterface
Interface for classes that manage a set of enabled modules.

Namespace

Drupal\Core\Extension

Code

public function invoke($module, $hook, $args = array());