- Issue created by @larowlan
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
A risk with removing this from the XB-wide storage of explicit inputs (currently
ComponentPropsValues
in the XB field property named'props'
, but π Remove references to 'props' outside of SDC - use 'inputs' instead Active will change that), is that we may lose the ability to apply update paths across all stored XB component trees.It is the ability to consistently detect what field type the stored input for an SDC prop uses that enables us to e.g. automatically upgrade all SDCs that use an
image
field+widget to instead use anentity_reference
restricted to Media + the Media Library Widget. (Seemedia_library_storage_prop_shape_alter()
β which now runs always, but we do not want to prevent the ability for different site owners to make different choices for field type + widget. Nor the ability to change their decision later, which requires the ability to write such an update path.)Idea:
- Add
interface ComponentSourceWithCustomizableExplicitInputStorageInterface extends ComponentSourceInterface
, similar to how we already haveinterface ComponentSourceWithSlotsInterface extends ComponentSourceInterface
. Only the SDC component source (and the upcoming "code component" component source) would implement this. - Add
ComponentSourceWithCustomizableExplicitInputStorageInterface:: getPropSourceTypePrefixList()
.
- Add