/** * {@inheritdoc} */ public function getIterator() { return new \CallbackFilterIterator($this->currencies->getIterator(), function (Currency $currency) { $item = $this->pool->getItem('currency|availability|' . $currency->getCode()); $item->set(true); if ($item instanceof TaggableItemInterface) { $item->addTag('currency.availability'); } $this->pool->save($item); return true; }); }