Problem/Motivation
Working on a project, we need to open a little more the internal APIs of ui_patterns.
i will post here a few minor adjustments to allow a better interoperability of the code from outside.
Issue fork ui_patterns-3511112
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
just_like_good_vibesPierre, please check the hook name "component_built", we need a better name
Comment #4
pdureau commentedNaming is hard :)
We are allowing the alteration of a slot source value:
So, instead of
hook_component_built_alter(component_built), we can proposehook_component_slot_source_alter(component_slot_source)hook_sdc_slot_source_alter(sdc_slot_source)hook_ui_patterns_slot_source_alter(ui_patterns_slot_source)hook_slot_source_alter(slot_source) if the previous ones are too longComment #5
pdureau commentedDiscussed with Mikael. We are not altering the source but the source value:
hook_component_slot_value_alter(component_slot_value)hook_sdc_slot_value_alter(sdc_slot_value)hook_ui_patterns_slot_value_alter(ui_patterns_slot_value)hook_slot_value_alter(slot_value) if the previous ones are too longBut I still prefer the "slot_source" one ;)
Comment #6
pdureau commentedThinking aloud: Is it limited to slot sources ? Why not opening this alter to prop sources?
hook_component_source_value_alter(component_source_value)hook_sdc_source_value_alter(sdc_source_value)hook_ui_patterns_source_value_alter(ui_patterns_source_value)hook_source_value_alter(source_value) if the previous ones are too longComment #7
just_like_good_vibeswe voted for ui_patterns_source_value, let the magic happens now
Comment #9
just_like_good_vibesComment #12
just_like_good_vibes