Problem/Motivation
twig_init, nyan_cat_init, phptemplate_init are all pointless
Proposed resolution
Call Extension::load() from \Drupal\Core\Theme\ThemeInitialization::loadActiveTheme()
Remaining tasks
Add change record
Improve deprecation notice
User interface changes
None
API changes
Calling THEME_ENGINE_init() is deprecated and will be removed in Drupal 10.
Data model changes
None
Release notes snippet
N/a
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3158289-2-8.patch | 2.63 KB | alexpott |
| #8 | 7-8-interdiff.txt | 931 bytes | alexpott |
| #7 | 3158289-2-7.patch | 2.58 KB | alexpott |
| #7 | 2-7-interdiff.txt | 2.02 KB | alexpott |
| #2 | 3158289-2.patch | 2.43 KB | alexpott |
Comments
Comment #2
alexpottComment #5
barboza commentedI'll review this issue
Comment #6
barboza commentedThe patch looks fine and works as expected for me.
Comment #7
alexpottUpdating the deprecation message to be for 9.3.0 and adding the CR.
Comment #8
alexpottCreated the D10 follow-up - #3246981: Remove nyan_cat_init() and the legacy group and expected deprecation from \Drupal\Tests\system\Functional\Theme\EngineNyanCatTest::testTemplateOverride
Comment #10
catchCommitted/pushed to 9.4.x and cherry-picked to 9.3.x, thanks!
Comment #12
volegerComment #13
andypostPublished CR