Verified Commit 272f814c authored by quietone's avatar quietone
Browse files

Issue #3492131 by lavanyatalwar, nicxvan, mstrelan, berdir: Remove references to hook_process_HOOK

(cherry picked from commit ae200eb2)
parent 7858c7be
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1669,7 +1669,6 @@
 *
 * Theme hooks:
 * - hook_preprocess_HOOK()
 * - hook_process_HOOK()
 *
 * @subsection procedural-hooks Procedural hook implementation
 *
+0 −1
Original line number Diff line number Diff line
@@ -77,7 +77,6 @@
 *
 * Theme hooks:
 * - hook_preprocess_HOOK()
 * - hook_process_HOOK()
 *
 * @section sec_backwards_compatibility Backwards-compatibility
 *
+1 −1
Original line number Diff line number Diff line
@@ -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.");
    }
  }