Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
attribute_sets.php File Reference

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $attributeSetFactory = $objectManager->get(\Magento\Eav\Api\Data\AttributeSetInterfaceFactory::class)
 
 $dataObjectHelper = $objectManager->get(\Magento\Framework\Api\DataObjectHelper::class)
 
 $attributeSetRepository = $objectManager->get(\Magento\Catalog\Api\AttributeSetRepositoryInterface::class)
 
 $attributeSetManagement = $objectManager->get(\Magento\Eav\Api\AttributeSetManagementInterface::class)
 
 $entityTypeId = $objectManager->create(\Magento\Eav\Model\Entity\Type::class)->loadByCode('catalog_product')->getId()
 
 $defaultAttributeSet
 
 $attributeSet = $attributeSetFactory->create()
 

Variable Documentation

◆ $attributeSet

$attributeSet = $attributeSetFactory->create()

Definition at line 19 of file attribute_sets.php.

◆ $attributeSetFactory

$attributeSetFactory = $objectManager->get(\Magento\Eav\Api\Data\AttributeSetInterfaceFactory::class)

Definition at line 9 of file attribute_sets.php.

◆ $attributeSetManagement

$attributeSetManagement = $objectManager->get(\Magento\Eav\Api\AttributeSetManagementInterface::class)

Definition at line 12 of file attribute_sets.php.

◆ $attributeSetRepository

$attributeSetRepository = $objectManager->get(\Magento\Catalog\Api\AttributeSetRepositoryInterface::class)

Definition at line 11 of file attribute_sets.php.

◆ $dataObjectHelper

$dataObjectHelper = $objectManager->get(\Magento\Framework\Api\DataObjectHelper::class)

Definition at line 10 of file attribute_sets.php.

◆ $defaultAttributeSet

$defaultAttributeSet
Initial value:
= $objectManager->get(Magento\Eav\Model\Config::class)
->getEntityType('catalog_product')
->getDefaultAttributeSetId()
$objectManager

Definition at line 15 of file attribute_sets.php.

◆ $entityTypeId

$entityTypeId = $objectManager->create(\Magento\Eav\Model\Entity\Type::class)->loadByCode('catalog_product')->getId()

Definition at line 14 of file attribute_sets.php.

◆ $objectManager

Definition at line 8 of file attribute_sets.php.