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

Go to the source code of this file.

Variables

 $productRepository = Bootstrap::getObjectManager()->create(ProductRepositoryInterface::class)
 
 $installer = Bootstrap::getObjectManager()->create(CategorySetup::class)
 
 $website = Bootstrap::getObjectManager()->create(Website::class)
 
 $websiteIds = [$website->getId()]
 
 $eavConfig = Bootstrap::getObjectManager()->create(Config::class)
 
 $attribute = $eavConfig->getAttribute(\Magento\Catalog\Model\Product::ENTITY, 'test_configurable')
 
 $options = $attribute->getOptions()
 
 $configurableIds = [1, 2]
 
 $attributeSetId = $installer->getAttributeSetId('catalog_product', 'Default')
 

Variable Documentation

◆ $attribute

$attribute = $eavConfig->getAttribute(\Magento\Catalog\Model\Product::ENTITY, 'test_configurable')

Definition at line 36 of file product_configurable_multiple.php.

◆ $attributeSetId

$attributeSetId = $installer->getAttributeSetId('catalog_product', 'Default')

Definition at line 43 of file product_configurable_multiple.php.

◆ $configurableIds

$configurableIds = [1, 2]

Definition at line 42 of file product_configurable_multiple.php.

◆ $eavConfig

$eavConfig = Bootstrap::getObjectManager()->create(Config::class)

Definition at line 35 of file product_configurable_multiple.php.

◆ $installer

$installer = Bootstrap::getObjectManager()->create(CategorySetup::class)

Definition at line 27 of file product_configurable_multiple.php.

◆ $options

$options = $attribute->getOptions()

Definition at line 40 of file product_configurable_multiple.php.

◆ $productRepository

$productRepository = Bootstrap::getObjectManager()->create(ProductRepositoryInterface::class)

Definition at line 24 of file product_configurable_multiple.php.

◆ $website

$website = Bootstrap::getObjectManager()->create(Website::class)

Definition at line 30 of file product_configurable_multiple.php.

◆ $websiteIds

$websiteIds = [$website->getId()]

Definition at line 32 of file product_configurable_multiple.php.