- Issue created by @penyaskito
- 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
A proposal was done in #3485820-22: Fatal error on installing the Navigation module: `PropShape::resolveSchemaReferences(): Argument #1 ($schema) must be of type array, string given` → , to add an optional property in SDCs to opt-out from XB, e.g.,
hideFromUi: true
in core.I've mixed feelings about doing this in core though.
It would probably be easier to implement this way, but
hideFromUI
could be confusing.
Something specific likehideFromXB
adds a reference to experience_builder in core. What if e.g. tomorrow the storybook module wants to add a similar one?On the other side, SDC by definition should have everything in the same directory, so there are no hook_alters.
As we already decorate ComponentPluginManager it would still be possible though to have that in XB, but breaks the _single-directory_ contract.