class OtherModuleUninstalledHooks
Hook implementations for respond_install_uninstall_hook_test.
Hierarchy
- class \Drupal\respond_install_uninstall_hook_test\Hook\OtherModuleUninstalledHooks
Expanded class hierarchy of OtherModuleUninstalledHooks
File
-
core/
modules/ system/ tests/ modules/ respond_install_uninstall_hook_test/ src/ Hook/ OtherModuleUninstalledHooks.php, line 12
Namespace
Drupal\respond_install_uninstall_hook_test\HookView source
class OtherModuleUninstalledHooks {
/**
* Implements hook_module_preuninstall().
*/
public function modulePreuninstall() : void {
// Set a global value we can check in test code.
$GLOBALS['hook_module_preuninstall'] = 'hook_module_preuninstall';
}
/**
* Implements hook_modules_uninstalled().
*/
public function modulesUninstall() : void {
// Set a global value we can check in test code.
$GLOBALS['hook_modules_uninstalled'] = 'hook_modules_uninstalled';
}
/**
* Implements hook_cache_flush().
*/
public function cacheFlush() : void {
// Set a global value we can check in test code.
$GLOBALS['hook_cache_flush'] = 'hook_cache_flush';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
OtherModuleUninstalledHooks::cacheFlush | public | function | Implements hook_cache_flush(). |
OtherModuleUninstalledHooks::modulePreuninstall | public | function | Implements hook_module_preuninstall(). |
OtherModuleUninstalledHooks::modulesUninstall | public | function | Implements hook_modules_uninstalled(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.