Problem/Motivation
Following #3511112: [2.0.1] Make Componenent element builder alterable, the hook is used in Display Builder with a custom _third_party_settings property.
Proposed resolution
Let's make this property official by introducing:
third_party_settings:
type: mapping
label: 'Third party settings'
Remaining tasks
However, this proposal is different from other definitions in Core:
layout_builder.section:
type: mapping
label: 'Layout section'
mapping:
...
third_party_settings:
type: sequence
label: 'Third party settings'
sequence:
type: '[%parent.%parent.%type].third_party.[%key]'
config_entity:
type: mapping
mapping:
...
third_party_settings:
requiredKey: false
type: sequence
label: 'Third party settings'
sequence:
type: '[%parent.%parent.%type].third_party.[%key]'
Is it also the opportunity to be more complaint with Core usage?
API changes
Display Builder will need to update _third_party_settings to third_party_settings and maybe change the structure.
Issue fork ui_patterns-3540614
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 #3
pdureau commented@grimreaper: Let's talk about that because you are the config schema fan.
Comment #4
grimreaperComment #5
pdureau commentedFixed.
What about this question: Is it OK this proposal is different from other definitions in Core?
Comment #6
grimreaperI was not aware theme settings also got third_party_settings, thinking about ui_styles_entity_status, ui_skins....
I think it is ok to not have automatically type: '[%parent.%parent.%type].third_party.[%key]', but in the current state, the sequence type needs to be specified.
Comment #7
pdureau commentedWe can do this:
And then do this in UI Patterns:
Comment #8
pdureau commentedComment #9
pdureau commentedComment #10
pdureau commentedComment #12
just_like_good_vibeshello Florent, can you tell us if it would be good to merge. i was not sure if discussions were finished or not for this issue.
Comment #13
grimreaperComment #14
grimreaperConfig schema problem on Display Builder side, as it ignores too much stuff.
So I manually added third_party_settings in a ui_patterns_block and checked with config_inspector.
I pushed a small change which is now ok for me.
UIP2 still has a lot of config schema problem due to ignores too. But this will be for another issue.
So currently pipeline is blocked due to the Core security release of this evening. But it is RTBC for me.
I let you re-trigger the pipeline when you will want to merge it.
Thanks!