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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $attributeSet = $objectManager->create(\Magento\Eav\Model\Entity\Attribute\Set::class)
 
 $entityType = $objectManager->create(\Magento\Eav\Model\Entity\Type::class)->loadByCode('catalog_product')
 
 $defaultSetId = $objectManager->create(\Magento\Catalog\Model\Product::class)->getDefaultAttributeSetid()
 
 $attributeGroupId = $attributeSet->getDefaultGroupId($entityType->getDefaultAttributeSetId())
 
 $attributeData
 
 $attribute = $objectManager->create(\Magento\Eav\Model\Entity\Attribute::class)
 

Variable Documentation

◆ $attribute

$attribute = $objectManager->create(\Magento\Eav\Model\Entity\Attribute::class)

Definition at line 31 of file fixed_product_attribute.php.

◆ $attributeData

$attributeData
Initial value:
= [
'entity_type_id' => $entityType->getId(),
'attribute_code' => 'fixed_product_attribute',
'backend_model' => 'Magento\Weee\Model\Attribute\Backend\Weee\Tax',
'is_required' => 0,
'is_user_defined' => 1,
'is_static' => 1,
'attribute_set_id' => $defaultSetId,
'attribute_group_id' => $attributeGroupId,
]

Definition at line 19 of file fixed_product_attribute.php.

◆ $attributeGroupId

$attributeGroupId = $attributeSet->getDefaultGroupId($entityType->getDefaultAttributeSetId())

Definition at line 17 of file fixed_product_attribute.php.

◆ $attributeSet

$attributeSet = $objectManager->create(\Magento\Eav\Model\Entity\Attribute\Set::class)

Definition at line 12 of file fixed_product_attribute.php.

◆ $defaultSetId

$defaultSetId = $objectManager->create(\Magento\Catalog\Model\Product::class)->getDefaultAttributeSetid()

Definition at line 15 of file fixed_product_attribute.php.

◆ $entityType

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

Definition at line 14 of file fixed_product_attribute.php.

◆ $objectManager

Definition at line 9 of file fixed_product_attribute.php.