pool = $pool ?: ObjectManager::getInstance()->get(PoolInterface::class); } /** * @inheritdoc */ public function getData() { $this->getConfigData(); foreach ($this->pool->getModifiersInstances() as $modifier) { $this->data = $modifier->modifyData($this->data); } return $this->data; } /** * @inheritdoc */ public function getMeta() { $this->meta = parent::getMeta(); /** @var ModifierInterface $modifier */ $this->pool->getModifiers(); foreach ($this->pool->getModifiersInstances() as $modifier) { $this->meta = $modifier->modifyMeta($this->meta); } return $this->meta; } }