Closed (fixed)
Project:
UI Patterns (SDC in Drupal UI)
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2025 at 08:52 UTC
Updated:
25 Mar 2025 at 13:29 UTC
Jump to comment: Most recent
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