Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment 0
Problem/Motivation
@TODO
#1954892: Replace 'theme callback' and hook_custom_theme() with a clean theme negotiation system
Comments
Comment #0.0
dawehner.
Comment #1
star-szrAn update here would be great, I'm not clear on what needs to be done here. Thanks!
Comment #2
dawehnerWe used to work a bit on #2228093: Modernize theme initialization which basically solved most of the architectual issues which also result in a lazy init of the theme system.
As a pratical step it would be possible to start with removing the general alter functionality of themes and replace it with specific alters: form, theme registry ...
This allows us to lazy init the theme system then.
Comment #3
dawehnerLet's mark this as postponed and hope that the other issue gets in.
Comment #4
star-szrSounds good, thank you @dawehner!
Comment #5
dawehneryeah, this is no longer needed!