helperData= $helperData; $this->helperAddress= $helperAddress; } /** * Get string with frontend validation classes for attribute * * @param string $attributeCode * @return string * @throws \Magento\Framework\Exception\LocalizedException */ public function dataGetAttributeValidationClass($attributeCode) { return $this->helperData->getAttributeValidationClass($attributeCode); } /** * Get string with frontend validation classes for attribute * * @param string $attributeCode * @return string * @throws \Magento\Framework\Exception\LocalizedException */ public function addressGetAttributeValidationClass($attributeCode) { return $this->helperAddress->getAttributeValidationClass($attributeCode); } /** * Return Number of Lines in a Street Address for store * * @param \Magento\Store\Model\Store|int|string $store * * @return int * @throws NoSuchEntityException * @throws \Magento\Framework\Exception\LocalizedException */ public function addressGetStreetLines() { return $this->helperAddress->getStreetLines(); } /** * Check if VAT ID address attribute has to be shown on frontend (on Customer Address management forms) * * @return boolean */ public function addressIsVatAttributeVisible() { return $this->helperAddress->isVatAttributeVisible(); } /** * Retrieve regions data json * * @return string * @throws NoSuchEntityException */ public function dataGetRegionJson() { return $this->helperData->getRegionJson(); } /** * Return ISO2 country codes, which have optional Zip/Postal pre-configured * * @param bool $asJson * @return array|string */ public function dataGetCountriesWithOptionalZip($asJson) { return $this->helperData->getCountriesWithOptionalZip($asJson); } }