Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Major
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
30 Jun 2014 at 20:11 UTC
Updated:
14 Nov 2014 at 11:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettComment #2
tim.plunkettNote, I chose to continue extending DefaultHtmlFragmentRenderer because we're only adding in the blocks. Eventually we could just implement HtmlFragmentRendererInterface directly.
However, if I tried to do that, I'd be blocked by #2295367: BatchController should not rely on DefaultHtmlFragmentRenderer directly.
Comment #4
tim.plunkettWell, that was surprising.
We need to contend with the main content fallback code. Here are two options.
Comment #7
eclipsegc commentedI'm working on a patch for this that moves drupal_prepare_page() into DefaultHtmlFragmentRender::preparePage() and subsequently results in being able to remove both drupal_prepare_page and drupal_render_page. I'm still debating this approach, but I think it makes sense the more I play with it. It's just a matter of getting all the parts in the right places and updating the code that manually references those things already... which isn't actually all that much code. (I was surprised)
I'll see if I can get something up soonish.
Eclipse
Comment #8
tim.plunkettComment #10
tim.plunkettComment #12
Crell commentedJust cross linking...
Comment #13
tim.plunkettMarked #2334221: Move block building from hook_page_build() to DefaultHtmlPageRenderer as a dupe.
Comment #14
eclipsegc commentedUnfortunately it's also probably irrelevant now re:
#2350943: [Meta] Untangle Drupal 8 page rendering
and
#2352155: Remove HtmlFragment/HtmlPage
Comment #15
catch'Unfortunately' #2352155: Remove HtmlFragment/HtmlPage completely fixed this issue by moving block addition to the display variant.