#3455942: HTTP API: update /xb-components to use Component config entity's default values
1 unresolved thread
Merged
requested to merge issue/experience_builder-3455942:3455942-use-component-config-entity-default-values into 0.x
1 unresolved thread
Compare changes
+ 20
− 98
@@ -91,6 +91,7 @@ final class SdcController extends ControllerBase {
@@ -112,12 +113,21 @@ final class SdcController extends ControllerBase {
@@ -133,7 +143,7 @@ final class SdcController extends ControllerBase {
@@ -167,10 +177,11 @@ final class SdcController extends ControllerBase {
@@ -180,23 +191,12 @@ final class SdcController extends ControllerBase {
@@ -243,82 +243,4 @@ final class SdcController extends ControllerBase {
$is_image
and$is_datetime
checks allow us to fall back to bypassing the default value stored in theComponent
config entity and instead fall back to the value in the SDC's*.component.yml
file. In both cases, transformations are necessary that lead us very far beyond the scope of this issue. Special-casing two things is already two orders of magnitude better than how this used to work — see the logic ingetDefaultValueFromPropInfo()
!