if ($productConfig->
isProductStream() &&
$productConfig->
getValue()) { $entitySearchResult =
$result->
get(self::PRODUCT_SLIDER_ENTITY_FALLBACK . '_' .
$slot->
getUniqueIdentifier());
if ($entitySearchResult === null
) { return;
} /** @var ProductCollection $streamResult */
$streamResult =
$entitySearchResult->
getEntities();
$slider->
setProducts($streamResult);
$slider->
setStreamId($productConfig->
getStringValue());
} } private function enrichFromSearch(ProductSliderStruct
$slider, ElementDataCollection
$result, string
$searchKey, SalesChannelContext
$saleschannelContext): void
{ $searchResult =
$result->
get($searchKey);
if ($searchResult === null
) { return;
} /** @var ProductCollection|null $products */