Loading core/core.api.php +0 −1 Original line number Diff line number Diff line Loading @@ -1669,7 +1669,6 @@ * * Theme hooks: * - hook_preprocess_HOOK() * - hook_process_HOOK() * * @subsection procedural-hooks Procedural hook implementation * Loading core/lib/Drupal/Core/Hook/Attribute/Hook.php +0 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,6 @@ * * Theme hooks: * - hook_preprocess_HOOK() * - hook_process_HOOK() * * @section sec_backwards_compatibility Backwards-compatibility * Loading core/lib/Drupal/Core/Hook/HookCollectorPass.php +1 −1 Original line number Diff line number Diff line Loading @@ -382,7 +382,7 @@ public static function checkForProceduralOnlyHooks(Hook $hook, string $class): v 'hook_install_tasks_alter', ]; if (in_array($hook->hook, $staticDenyHooks) || preg_match('/^(post_update_|preprocess_|process_|update_\d+$)/', $hook->hook)) { if (in_array($hook->hook, $staticDenyHooks) || preg_match('/^(post_update_|preprocess_|update_\d+$)/', $hook->hook)) { throw new \LogicException("The hook $hook->hook on class $class does not support attributes and must remain procedural."); } } Loading Loading
core/core.api.php +0 −1 Original line number Diff line number Diff line Loading @@ -1669,7 +1669,6 @@ * * Theme hooks: * - hook_preprocess_HOOK() * - hook_process_HOOK() * * @subsection procedural-hooks Procedural hook implementation * Loading
core/lib/Drupal/Core/Hook/Attribute/Hook.php +0 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,6 @@ * * Theme hooks: * - hook_preprocess_HOOK() * - hook_process_HOOK() * * @section sec_backwards_compatibility Backwards-compatibility * Loading
core/lib/Drupal/Core/Hook/HookCollectorPass.php +1 −1 Original line number Diff line number Diff line Loading @@ -382,7 +382,7 @@ public static function checkForProceduralOnlyHooks(Hook $hook, string $class): v 'hook_install_tasks_alter', ]; if (in_array($hook->hook, $staticDenyHooks) || preg_match('/^(post_update_|preprocess_|process_|update_\d+$)/', $hook->hook)) { if (in_array($hook->hook, $staticDenyHooks) || preg_match('/^(post_update_|preprocess_|update_\d+$)/', $hook->hook)) { throw new \LogicException("The hook $hook->hook on class $class does not support attributes and must remain procedural."); } } Loading