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
KernelTestBase::render is passing ActiveTheme::getName return value as a parameter for BareHtmlPageRenderer::renderBarePage. BareHtmlPageRenderer::renderBarePage is actually excpecting for a theme hook instead of a theme name.
Proposed resolution
-
Remaining tasks
-
User interface changes
-
API changes
-
Data model changes
-
Comment | File | Size | Author |
---|---|---|---|
#14 | kerneltestbase_render-2661470-14.patch | 3.13 KB | lauriii |
#9 | 2661470-theme-bare-page-9.patch | 2.78 KB | andypost |
Comments
Comment #2
andypostLooking at
\Drupal\Core\Render\BareHtmlPageRenderer::renderBarePage()
we need to make$page_theme_property
default topage
All test files I can grep are in patch
Comment #4
Wim LeersI don't see what the problem is in the existing code TBH.
Comment #5
dawehnerThe documentation for this parameter says:
so passing in the current active theme cannot be right
Comment #8
dawehnerIMHO we should go with 'maintenance_page', as this is the more realistic example of core.
Comment #9
andypostYep, bare page should skip a lot, let's see what bot thinks
Comment #12
Wim Leers+1
Comment #13
Wim LeersComment #14
lauriiiRerolling this on 8.1.x
Comment #15
andypostthe only question here why that was working before... and #9 failed
Comment #18
alexpott#9 failed because HEAD was broken.
Committed dd7dbd2 and pushed to 8.1.x and 8.2.x. Thanks!