class OnBehalfOfOtherModuleHook
Hook implementation on behalf of another module.
Hierarchy
- class \Drupal\hook_collector_on_behalf\Hook\OnBehalfOfOtherModuleHook
Expanded class hierarchy of OnBehalfOfOtherModuleHook
File
-
core/
modules/ system/ tests/ modules/ hook_collector_on_behalf/ src/ Hook/ OnBehalfOfOtherModuleHook.php, line 12
Namespace
Drupal\hook_collector_on_behalf\HookView source
class OnBehalfOfOtherModuleHook {
/**
* Implements hook_module_preinstall().
*/
public function flush() : void {
// Set a global value we can check in test code.
$GLOBALS['on_behalf_oop'] = 'on_behalf_oop';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
OnBehalfOfOtherModuleHook::flush | public | function | Implements hook_module_preinstall(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.