/** * {@inheritdoc} */ public function removePricesNotInCurrency(ProductValueInterface $value, array $currencies) { foreach ($value->getPrices() as $price) { if (!in_array($price->getCurrency(), $currencies)) { $value->removePrice($price); } } }