_localeFormat = $localeFormat; $this->dataHelper = $dataHelper; } public function toHtml() { if (!$this->dataHelper->isEnabled() || !$this->dataHelper->isGroupValid()) return; return parent::toHtml(); } /** * @return array */ public function getPriceFormat() { return $this->_localeFormat->getPriceFormat(); } /** * @throws LocalizedException */ public function getFormKey() { return $this->formKey->getFormKey(); } }