public function getList($products, ShopContextInterface
$context) { $group =
$context->
getCurrentCustomerGroup();
$specify =
$this->graduatedPricesGateway->
getList( $products,
$context,
$group );
// iterates the passed prices and products and assign the product unit to the prices and the passed customer group
$prices =
$this->
buildPrices( $products,
$specify,
$group );
// check if one of the products have no assigned price within the prices variable.
$fallbackProducts =
array_filter( $products,
function DListProduct
$product) use ($prices) { return !\
array_key_exists($product->
getNumber(),
$prices);
} );