Skip to content

Commit

Permalink
Remove leftover code
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenoh committed Nov 22, 2023
1 parent bdc62b6 commit 9ec473c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/Theme/HookPreprocess.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public static function links(array &$variables): void
$variables['heading']['attributes']['class'] = $variables['heading']['class'];
unset($variables['heading']['class']);
}
$links['#heading'] = $variables['heading'];
}
}
}
3 changes: 0 additions & 3 deletions src/functions/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ function list_themes(bool $refresh = false): array
function theme(string $hook, array $variables = []): MarkupInterface|string
{
$build['#theme'] = $hook;
if (function_exists('retrofit_preprocess_' . $hook)) {
('retrofit_preprocess_' . $hook)($variables);
}
foreach ($variables as $key => $variable) {
$build["#$key"] = $variable;
}
Expand Down

0 comments on commit 9ec473c

Please sign in to comment.