/**
* {@inheritdoc}
*/
public function getUrls(Context
$routingContext, ShopContextInterface
$shopContext) { $criteria =
$this->storeFrontCriteriaFactory
->
createBaseCriteria([$shopContext->
getShop()->
getCategory()->
getId()],
$shopContext);
$criteria->
setFetchCount(false
);
$criteria->
limit($this->batchSize
);
if ($this->lastId
) { $criteria->
addBaseCondition(new LastProductIdCondition($this->lastId
));
} $productNumberSearchResult =
$this->productNumberSearch->
search($criteria,
$shopContext);
if (\
count($productNumberSearchResult->
getProducts()) === 0
) { return [];
} // Load all available product ids
$productIds =
array_map(function DBaseProduct
$baseProduct) { return $baseProduct->
getId();
},