Active
Project:
Drupal core
Version:
main
Component:
layout_builder.module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
28 Sep 2017 at 09:16 UTC
Updated:
12 Apr 2019 at 17:02 UTC
Jump to comment: Most recent
generateSampleValue() is really cool, and a lot of field types provide very complex implementations.
Layout Sections should do the same!
Use only guaranteed available modules to place a block in a layout. Guaranteed modules are layout_builder, layout_discovery and system. Let's us a 1 column layout with the "Powered by Drupal" block placed in it.
Generate a single column layout with a "powered by Drupal" block placed in it.
none
none
none
Comments
Comment #2
tim.plunkettComment #3
larowlanComment #5
tim.plunkettComment #6
bkosborneCan you elaborate a bit on how this would apply to sections? I'm not understanding how sample content could be associated with sections. Like sample block placements?
Comment #8
dmsmidtI'm also not sure what to expect from this issue. It doesn't feel like a blocker.
Comment #9
tim.plunkettThe "Blocks-Layouts" tag is about "Block (plugins) and Layouts", not about blockers for layouts.
Is that what you meant? Cause this isn't a blocker for anything.
This was originally at @EclipseGc's request, so perhaps he can expand upon the goals here.
Comment #10
dmsmidtThanks for the clarification, yeah you interpreted my misinterpretation right ;-)
We'll wait for an update.
Comment #12
eclipsegc commentedSo conceptually a generated layout has to conform to a couple of things:
We need to focus in on modules that are guaranteed to be installed at all times. For layout builder, our bare minimum guarantees are probably layout_discovery, layout_builder and system. I think a sane default is probably a 1 column with "powered by drupal" in the region.
Eclipse
Comment #13
eclipsegc commented