class OtherModuleInstalledHooks

Hook implementations for respond_install_uninstall_hook_test.

Hierarchy

Expanded class hierarchy of OtherModuleInstalledHooks

File

core/modules/system/tests/modules/respond_install_uninstall_hook_test/src/Hook/OtherModuleInstalledHooks.php, line 12

Namespace

Drupal\respond_install_uninstall_hook_test\Hook
View source
class OtherModuleInstalledHooks {
    
    /**
     * Implements hook_module_preinstall().
     */
    public function modulePreinstall() : void {
        // Set a global value we can check in test code.
        $GLOBALS['hook_module_preinstall'] = 'hook_module_preinstall';
    }
    
    /**
     * Implements hook_modules_installed().
     */
    public function modulesInstalled() : void {
        // Set a global value we can check in test code.
        $GLOBALS['hook_modules_installed'] = 'hook_modules_installed';
    }

}

Members

Title Sort descending Modifiers Object type Summary
OtherModuleInstalledHooks::modulePreinstall public function Implements hook_module_preinstall().
OtherModuleInstalledHooks::modulesInstalled public function Implements hook_modules_installed().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.