function OnBehalfOfOtherModuleHook::flush
Implements hook_module_preinstall().
File
-
core/
modules/ system/ tests/ modules/ hook_collector_on_behalf/ src/ Hook/ OnBehalfOfOtherModuleHook.php, line 17
Class
- OnBehalfOfOtherModuleHook
- Hook implementation on behalf of another module.
Namespace
Drupal\hook_collector_on_behalf\HookCode
public function flush() : void {
// Set a global value we can check in test code.
$GLOBALS['on_behalf_oop'] = 'on_behalf_oop';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.