Loading core/core.api.php +2 −0 Original line number Diff line number Diff line Loading @@ -1659,6 +1659,8 @@ * * Install hooks: * - hook_install() * - hook_install_tasks() * - hook_install_tasks_alter() * - hook_post_update_NAME() * - hook_schema() * - hook_uninstall() Loading core/lib/Drupal/Core/Extension/ModuleInstaller.php +2 −4 Original line number Diff line number Diff line Loading @@ -705,10 +705,8 @@ protected function uninstallSchema(string $module): void { * * Hooks called during install will remain procedural. * - hook_install() * - hook_module_preinstall() * - hook_module_preuninstall() * - hook_modules_installed() * - hook_modules_uninstalled() * - hook_install_tasks() * - hook_install_tasks_alter() * - hook_post_update_NAME() * - hook_schema() * - hook_uninstall() Loading core/lib/Drupal/Core/Extension/module.api.php +4 −0 Original line number Diff line number Diff line Loading @@ -349,6 +349,8 @@ function hook_uninstall($is_syncing): void { /** * Return an array of tasks to be performed by an installation profile. * * Only procedural implementations are supported for this hook. * * Any tasks you define here will be run, in order, after the installer has * finished the site configuration step but before it has moved on to the * final import of languages and the end of the installation. This is invoked Loading Loading @@ -513,6 +515,8 @@ function hook_install_tasks(&$install_state) { /** * Alter the full list of installation tasks. * * Only procedural implementations are supported for this hook. * * You can use this hook to change or replace any part of the Drupal * installation process that occurs after the installation profile is selected. * Loading core/lib/Drupal/Core/Hook/Attribute/Hook.php +2 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,8 @@ * * Install hooks: * - hook_install() * - hook_install_tasks() * - hook_install_tasks_alter() * - hook_post_update_NAME() * - hook_schema() * - hook_uninstall() Loading core/lib/Drupal/Core/Hook/HookCollectorPass.php +2 −0 Original line number Diff line number Diff line Loading @@ -366,6 +366,8 @@ public static function checkForProceduralOnlyHooks(Hook $hook, string $class): v 'schema', 'uninstall', 'update_last_removed', 'hook_install_tasks', 'hook_install_tasks_alter', ]; if (in_array($hook->hook, $staticDenyHooks) || preg_match('/^(post_update_|preprocess_|process_|update_\d+$)/', $hook->hook)) { Loading Loading
core/core.api.php +2 −0 Original line number Diff line number Diff line Loading @@ -1659,6 +1659,8 @@ * * Install hooks: * - hook_install() * - hook_install_tasks() * - hook_install_tasks_alter() * - hook_post_update_NAME() * - hook_schema() * - hook_uninstall() Loading
core/lib/Drupal/Core/Extension/ModuleInstaller.php +2 −4 Original line number Diff line number Diff line Loading @@ -705,10 +705,8 @@ protected function uninstallSchema(string $module): void { * * Hooks called during install will remain procedural. * - hook_install() * - hook_module_preinstall() * - hook_module_preuninstall() * - hook_modules_installed() * - hook_modules_uninstalled() * - hook_install_tasks() * - hook_install_tasks_alter() * - hook_post_update_NAME() * - hook_schema() * - hook_uninstall() Loading
core/lib/Drupal/Core/Extension/module.api.php +4 −0 Original line number Diff line number Diff line Loading @@ -349,6 +349,8 @@ function hook_uninstall($is_syncing): void { /** * Return an array of tasks to be performed by an installation profile. * * Only procedural implementations are supported for this hook. * * Any tasks you define here will be run, in order, after the installer has * finished the site configuration step but before it has moved on to the * final import of languages and the end of the installation. This is invoked Loading Loading @@ -513,6 +515,8 @@ function hook_install_tasks(&$install_state) { /** * Alter the full list of installation tasks. * * Only procedural implementations are supported for this hook. * * You can use this hook to change or replace any part of the Drupal * installation process that occurs after the installation profile is selected. * Loading
core/lib/Drupal/Core/Hook/Attribute/Hook.php +2 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,8 @@ * * Install hooks: * - hook_install() * - hook_install_tasks() * - hook_install_tasks_alter() * - hook_post_update_NAME() * - hook_schema() * - hook_uninstall() Loading
core/lib/Drupal/Core/Hook/HookCollectorPass.php +2 −0 Original line number Diff line number Diff line Loading @@ -366,6 +366,8 @@ public static function checkForProceduralOnlyHooks(Hook $hook, string $class): v 'schema', 'uninstall', 'update_last_removed', 'hook_install_tasks', 'hook_install_tasks_alter', ]; if (in_array($hook->hook, $staticDenyHooks) || preg_match('/^(post_update_|preprocess_|process_|update_\d+$)/', $hook->hook)) { Loading