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.
Problem/Motivation
Follow up from #2228093: Modernize theme initialization
Comments
Comment #1
joelpittetRelates to this a bit: #2458185: ThemeHandler getName gives error for an uninstalled theme. If we can have that method return all themes even uninstalled ones this wouldn't be a problem?
Comment #2
dawehnerMH, I'm not sure this is the only problem here, note this comment:
Comment #3
xjmSo the comment referencing this issue was removed; does this get closed as a duplicate/wontfix?Edit: Never mind, the comment just got moved, not entirely removed.
Comment #4
xjmI don't really understand what the task in this issue is. Are the "workarounds" the code duplication?
Comment #5
dawehnerWell yeah the workarounds is bypassing the theme initialization code we call otherwise.
We somehow need a way to not call / construct the theme by hand.
Comment #6
almaudoh CreditAttribution: almaudoh commentedComment #8
Mile23