Undefined constant Drupal\bootstrap\Plugin\Alter\ThemeRegistry::PREPROCESS_INVOKES in Drupal\Core\Theme\Registry->postProcessExtension()

Created on 4 June 2025, 19 days ago

Problem/Motivation

bootstrap's ThemeRegistry extends internal class Drupal\Core\Theme\Registry, which was changed in 11.2.0-alpha1. Methods now use the constant PREPROCESS_INVOKES, that is not inherited due to being private.
When the theme is used, there is a fatal error
Error: Undefined constant Drupal\bootstrap\Plugin\Alter\ThemeRegistry::PREPROCESS_INVOKES in Drupal\Core\Theme\Registry->postProcessExtension() (line 848 of core/lib/Drupal/Core/Theme/Registry.php).

Steps to reproduce

  • Install bootstrap 3.x in Drupal 11.2.x and set it as default
  • Access frontend

Proposed resolution

Copy the constant to ThemeRegistry and make it protected.

πŸ› Bug report
Status

Active

Version

3.0

Component

Theme Registry

Created by

πŸ‡©πŸ‡ͺGermany hosterholz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024