Skip to content
Snippets Groups Projects

#3468192 - Make more dynamic PageTop->alter()

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -53,8 +53,8 @@ class PageTop implements ContainerInjectionInterface {
* @param array $page_top
* The page top elements.
*/
public function alter(array &$page_top): void {
$ui_skins_css_variables_settings = \theme_get_setting(UiSkinsInterface::CSS_VARIABLES_THEME_SETTING_KEY);
public function alter(array &$page_top, $theme = NULL): void {
$ui_skins_css_variables_settings = \theme_get_setting(UiSkinsInterface::CSS_VARIABLES_THEME_SETTING_KEY, $theme);
if (!\is_array($ui_skins_css_variables_settings)) {
return;
}
Loading