diff --git a/src/Service/UwNodeFieldValue.php b/src/Service/UwNodeFieldValue.php index 6e9399cf3c7730c067199d62bdbbb3a34d90c21f..bb9a247a456ba43f1453503d942e6c412e892aad 100644 --- a/src/Service/UwNodeFieldValue.php +++ b/src/Service/UwNodeFieldValue.php @@ -304,7 +304,6 @@ class UwNodeFieldValue { $banner['sources'] = $banner['image']['responsive_sources']; $banner['img_element'] = $banner['image']['img_element']['#uri']; $banner['alt'] = $banner['image']['alt']; - $banner['media_width'] = $media_width_classes ?? NULL; unset($banner['image']); } @@ -317,6 +316,7 @@ class UwNodeFieldValue { 'slide_speed' => $node->field_uw_slide_speed->value, 'style' => $node->field_uw_text_overlay_style->value, 'transition_speed' => $node->field_uw_transition_speed->value, + 'media_width' => $media_width_classes ?? NULL, ]; return $banners;