diff -u b/src/Hook/MarketWaveHooks.php b/src/Hook/MarketWaveHooks.php --- b/src/Hook/MarketWaveHooks.php +++ b/src/Hook/MarketWaveHooks.php @@ -18,7 +18,7 @@ * Implements hook_preprocess_HOOK() for region.html.twig. */ #[Hook('preprocess_region')] - public static function preprocessRegion(&$variables) { + public function preprocessRegion(&$variables) { $nowrap = [ 'primary_menu', 'secondary_menu', @@ -36,7 +36,7 @@ * Implements hook_theme_suggestions_HOOK_alter() for region templates. */ #[Hook('theme_suggestions_region_alter')] - public static function themeSuggestionsRegionAlter(array &$suggestions, array $variables) { + public function themeSuggestionsRegionAlter(array &$suggestions, array $variables) { $nowrap = [ 'primary_menu', 'secondary_menu', @@ -57,7 +57,7 @@ * Implements hook_preprocess_comment() for getting first later of comment auther name. */ #[Hook('preprocess_comment')] - public static function preprocessComment(&$variables) { + public function preprocessComment(&$variables) { $user = User::load($variables['author_id']); if ($user->get('user_picture')->isEmpty()) { $variables['comment_author'] = ucfirst(substr($user->get('name')->value, 0, 1)); @@ -68,7 +68,7 @@ * Implements hook_preprocess_HOOK() for form elements. */ #[Hook('preprocess_form_element')] - public static function preprocessFormElement(&$variables) { + public function preprocessFormElement(&$variables) { if (isset($variables['label']['#title'])) { if (is_object($variables['label']['#title']) && !$variables['label']['#title'] instanceof MarkupInterface) { $variables['input_title'] = NULL;