Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
generateSampleValue() is really cool, and a lot of field types provide very complex implementations.
Layout Sections should do the same!
Proposed resolution
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.
Remaining tasks
Generate a single column layout with a "powered by Drupal" block placed in it.
User interface changes
none
API changes
none
Data model changes
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 CreditAttribution: EclipseGc at Acquia 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 CreditAttribution: EclipseGc at Acquia commented