Problem/Motivation
We have Styles summary on layers panel, would be great to have the Config summary as well.
Steps to reproduce
Proposed resolution
Either we change the current ThirdPartySettingsInterface that is too specific to third_party_settings, add it to ContextualFormPanel island and make it higher level.
Either we can start by simply adding a summary process based on component 'props' in the layers panel.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|
Issue fork display_builder-3564094
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
mogtofu33 commentedComment #3
pdureau commentedEach node has 4 keys:
node_id(string)source_id(string)source(array)third_party_settings(array)The summary of the config stored in
sourceis already managed by the plugin identified insource_idthrough \Drupal\ui_patterns\PluginSettingsInterface::settingsSummary() and displayed on the start side of the layer:So, for component props, would it be enough to simply extends ComponentSource::settingsSummary() (which is today only adding the variant)?
Comment #4
pdureau commentedComment #5
mogtofu33 commentedOff course
ComponentSource::settingsSummary()would be a good place, but as today it only add variant. So this is a quick win to have the config available in layer, and we can have a follow up to add it in UI Patterns.Comment #6
pdureau commentedIs there a MR to review?
Comment #9
mogtofu33 commentedQuick win for beta1, keep open to have better.
Comment #10
mogtofu33 commentedFollow up work is on #3568329: Leverage PluginSettingsInterface::settingsSummary() in LayersPanel