Skip to content

Commit 95efe0b

Browse files
Update Deny list in hook rector to include to missing hooks and remove preprocess (#318)
* Update Deny list * Update HookConvertRector.php * Add temporary theme suffix * Remove bulk conversion helper
1 parent cbd50ae commit 95efe0b

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/Rector/Convert/HookConvertRector.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -241,17 +241,19 @@ protected function createMethodFromFunction(Function_ $node): ?ClassMethod
241241
if ($info = $this->getHookAndModuleName($node)) {
242242
['hook' => $hook, 'module' => $implementsModule] = $info;
243243
$procOnly = [
244-
'install',
245-
'requirements',
246-
'schema',
247-
'uninstall',
248-
'update_last_removed',
249-
'module_implements_alter',
250-
'hook_info',
251-
'install_tasks',
252-
'install_tasks_alter',
244+
'hook_info',
245+
'install',
246+
'install_tasks',
247+
'install_tasks_alter',
248+
'module_implements_alter',
249+
'removed_post_updates',
250+
'requirements',
251+
'schema',
252+
'uninstall',
253+
'update_dependencies',
254+
'update_last_removed',
253255
];
254-
if (in_array($hook, $procOnly) || str_starts_with($hook, 'preprocess') || str_starts_with($hook, 'process')) {
256+
if (in_array($hook, $procOnly)) {
255257
return null;
256258
}
257259
// Resolve __FUNCTION__ and unqualify things so TRUE doesn't

0 commit comments

Comments
 (0)