63 if (!empty($dataModelClass)) {
64 if (empty($this->_dataModels[$dataModelClass])) {
65 $dataModel = $this->_objectManager->create($dataModelClass);
66 $this->_dataModels[$dataModelClass] = $dataModel;
68 $dataModel = $this->_dataModels[$dataModelClass];
71 if (empty($this->_dataModels[
$attribute->getFrontendInput()])) {
72 $dataModelClass = sprintf(
73 'Magento\Eav\Model\Attribute\Data\%s',
74 $this->string->upperCaseWords(
$attribute->getFrontendInput())
76 $dataModel = $this->_objectManager->create($dataModelClass);
77 $this->_dataModels[
$attribute->getFrontendInput()] = $dataModel;
79 $dataModel = $this->_dataModels[
$attribute->getFrontendInput()];
create(\Magento\Eav\Model\Attribute $attribute, \Magento\Framework\Model\AbstractModel $entity)
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\Stdlib\StringUtils $string)
const OUTPUT_FORMAT_ONELINE
const OUTPUT_FORMAT_ARRAY