50 return $this->attributeSetManagement->create(
51 \
Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE,
65 $skeletonSet = $this->attributeSetRepository->get($skeletonId);
67 if ($skeletonSet->getEntityTypeId() != $productEntityId) {
69 __(
"The attribute set couldn't be created because it's based on a non-product attribute set.")
74 __(
"The attribute set couldn't be created because it's based on a non-existing attribute set.")
__construct(\Magento\Eav\Api\AttributeSetManagementInterface $attributeSetManagement, \Magento\Eav\Api\AttributeSetRepositoryInterface $attributeSetRepository, \Magento\Eav\Model\Config $eavConfig)
create(\Magento\Eav\Api\Data\AttributeSetInterface $attributeSet, $skeletonId)
validateSkeletonSet($skeletonId)