From aa68d054424dad066f81773c60443b232b48a583 Mon Sep 17 00:00:00 2001 From: Kristen Pol <kristen.pol@gmail.com> Date: Fri, 9 Aug 2024 14:13:11 -0700 Subject: [PATCH] Add hook_preprocess_page to not strip Drupal CSS. --- starshot_demo/starshot_demo.theme | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 starshot_demo/starshot_demo.theme diff --git a/starshot_demo/starshot_demo.theme b/starshot_demo/starshot_demo.theme new file mode 100644 index 00000000..07256616 --- /dev/null +++ b/starshot_demo/starshot_demo.theme @@ -0,0 +1,16 @@ +<?php + +/** + * @file + * Functions to support theming in the Starshot Demo theme. + */ + +/** + * Implements hook_preprocess_page(). + */ +function starshot_demo_preprocess_page(array &$variables): void { + + // Do not strip out Drupal core styles. + $variables['modifier_class'] = FALSE; + +} -- GitLab