Problem/Motivation
Following meeting of Friday 14 August.
In Admin UI, a pattern preset is editable only with a textarea showing the source tree YAML representation. It is not friendly and error prone.
Can we make pattern preset easily buildable with our "normal" UI?
Proposed resolution
- Add a new
pattern_presetbuildable plugin indisplay_builder_ui - Add a new
entity.pattern_preset.display_builderroute to access display builder for pattern presets - Add a
profileproperty in PatternPreset entity - Add
DisplayBuildableInterface::buildInstanceForm()to EntityForm.
Other tasks
Careful not creating a situation where things are breaking when display_builder_ui is not activated.
Careful with context management: It is OK if the context sensitive sources are missing form block library, but at least the ones already in the source tree must work. Do we still see the expected previews for example?
Issue fork display_builder-3617547
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 #4
pdureau commentedStarted. It goes as well as planned.
Other point of attention:
We also need to update doc.
Comment #5
pdureau commented✅ Not anymore. Maybe because of the addition of the
no_uiattributes.✅
PatternPresetnterface::getContexts()is returning proper contexts:Maybe we will be able to close #3546964: Better context management in presets as duplicate or outdated.
Next steps, the usual:
Comment #6
pdureau commentedComment #7
pdureau commentedSome of the changes form here have been moved to #3618100: Pattern presets fix & clean-up, so lets wait the previous one is merged before resuming our work.
Comment #8
pdureau commented#3618100: Pattern presets fix & clean-up has been merged to 1.0.x. Lets 'resume.
Comment #9
pdureau commented(i remove from ticket description the work already done in #3618100: Pattern presets fix & clean-up)