function OtherModuleUninstalledHooks::modulePreuninstall
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/respond_install_uninstall_hook_test/src/Hook/OtherModuleUninstalledHooks.php \Drupal\respond_install_uninstall_hook_test\Hook\OtherModuleUninstalledHooks::modulePreuninstall()
Implements hook_module_preuninstall().
Attributes
#[Hook('module_preuninstall')]
File
-
core/
modules/ system/ tests/ modules/ respond_install_uninstall_hook_test/ src/ Hook/ OtherModuleUninstalledHooks.php, line 17
Class
- OtherModuleUninstalledHooks
- Hook implementations for respond_install_uninstall_hook_test.
Namespace
Drupal\respond_install_uninstall_hook_test\HookCode
public function modulePreuninstall() : void {
// Set a global value we can check in test code.
$GLOBALS['hook_module_preuninstall'] = 'hook_module_preuninstall';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.