Problem/Motivation
Currently when creating a page layout with Display Builder, default layout is imported from modules/display_builder_page_layout/fixtures/default_page_layout.yml, if it is the first page layout, let's try to import from current block layout configuration.
Because currently, a user could ask:
- why is there the XXX block while I have removed it?
- where are all the blocks I have configured on block layout?
Also currently, the fixture references some blocks generated by derivatives from config, menu block, main, account, footer. What if there is no footer menu on the website? (very low probability that there is no main and account menu even if theorically possible)
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork display_builder-3547979
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pdureau commentedComment #3
pdureau commentedWe may need a ComponentSource plugin type, like Canvas does, with 3 plugins:
page.html.twig, to address this featureComment #4
pdureau commentedComment #5
pdureau commentedComment #7
pdureau commentedNow #3531521: Layout plugins support is merged, we can start.
Comment #8
pdureau commentedgreen pipeline :)
To do before sending to review:
::calculateDependencies()SourceWithSlotsInterfacegetActiveTheme()ingetSlotDefinitions()Comment #9
pdureau commentedComment #10
pdureau commentedComment #11
pdureau commentedComment #12
grimreaperComment #13
grimreaperTested, ok for me.
I left a few minor suggestions and questions.
Also, I would have expected more changes needed in the tests.
Comment #14
pdureau commentedThanks, i will have a look
Comment #15
pdureau commentedComment #16
grimreaperThanks.
No having tests aside, I think it is RTBC.
Comment #17
pdureau commentedGreat, thanks. We didn't have test for
/modules/display_builder_entity_view/src/BuilderDataConverter.phpso I don't belive we absolutely need one for/modules/display_builder_page_layout/src/BuilderDataConverter.phpComment #18
pdureau commentedComment #20
mogtofu33 commented