/** * Detect form field class by option * * @param \XLite\Model\Config $option Option * * @return string */ protected function detectFormFieldClassByOption(\XLite\Model\Config $option) { return 'dimensions' === $option->getName() ? 'XLite\\View\\FormField\\Input\\Text\\Dimensions' : parent::detectFormFieldClassByOption($option); }
/** * Detect form field class by option * * @param \XLite\Model\Config $option Option * * @return string */ protected function detectFormFieldClassByOption(\XLite\Model\Config $option) { return $this->isCountriesSelector($option->getName()) ? 'XLite\\Module\\XC\\PitneyBowes\\View\\FormField\\Select\\Country' : parent::detectFormFieldClassByOption($option); }