14 private $inputTypeFactory;
19 private $attributeTypeFactory;
24 private $dataObjectHelper;
32 \
Magento\Catalog\Model\
Product\Attribute\Source\InputtypeFactory $inputTypeFactory,
33 \
Magento\Catalog\Api\Data\ProductAttributeTypeInterfaceFactory $attributeTypeFactory,
34 \
Magento\Framework\Api\DataObjectHelper $dataObjectHelper
36 $this->inputTypeFactory = $inputTypeFactory;
37 $this->attributeTypeFactory = $attributeTypeFactory;
47 $inputType = $this->inputTypeFactory->create();
49 foreach ($inputType->toOptionArray() as
$option) {
50 $type = $this->attributeTypeFactory->create();
51 $this->dataObjectHelper->populateWithArray(
54 \
Magento\Catalog\Api\Data\ProductAttributeTypeInterface::class
__construct(\Magento\Catalog\Model\Product\Attribute\Source\InputtypeFactory $inputTypeFactory, \Magento\Catalog\Api\Data\ProductAttributeTypeInterfaceFactory $attributeTypeFactory, \Magento\Framework\Api\DataObjectHelper $dataObjectHelper)