private function extractProductIds(CategoryRouteResponse
$response): array
{ $page =
$response->
getCategory()->
getCmsPage();
if ($page === null
) { return [];
} $ids =
[];
$streamIds =
[];
$slots =
$page->
getElementsOfType('product-slider'
);
/** @var CmsSlotEntity $slot */
foreach ($slots as $slot) { $slider =
$slot->
getData();
if (!
$slider instanceof ProductSliderStruct
) { continue;
} if ($slider->
getStreamId() !== null
) { $streamIds[] =
$slider->
getStreamId();
}