function ModuleImplementsAlter::call
Invokes the registered callback.
Parameters
array<string, string|false> $implementations: The implementations, as "group" by module name.
string $hook: The hook.
1 call to ModuleImplementsAlter::call()
- aaa_hook_order_test_module_implements_alter in core/
modules/ system/ tests/ modules/ HookOrder/ aaa_hook_order_test/ aaa_hook_order_test.module - Implements hook_module_implements_alter().
File
-
core/
modules/ system/ tests/ modules/ HookOrder/ aaa_hook_order_test/ src/ Hook/ ModuleImplementsAlter.php, line 40
Class
- ModuleImplementsAlter
- Contains a replaceable callback for hook_module_implements_alter().
Namespace
Drupal\aaa_hook_order_test\HookCode
public static function call(array &$implementations, string $hook) : void {
if (self::$callback === NULL) {
return;
}
(self::$callback)($implementations, $hook);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.