Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
product_bundle.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()]
 
 $attributeSetId = $installer->getAttributeSetId('catalog_product', 'Default')
 
 $productId = 10
 
 $product = Bootstrap::getObjectManager()->create(Product::class)
 
 $registry = Bootstrap::getObjectManager()->get(Registry::class)
 
 try
 
 $itemResource = Bootstrap::getObjectManager()->get(QuoteItem::class)
 
 $bundleProductId = 3
 
 $bundleProduct = Bootstrap::getObjectManager()->create(Product::class)
 
 $categoryLinkManagement
 

Variable Documentation

◆ $attributeSetId

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

Definition at line 35 of file product_bundle.php.

◆ $bundleProduct

$bundleProduct = Bootstrap::getObjectManager()->create(Product::class)

Definition at line 77 of file product_bundle.php.

◆ $bundleProductId

$bundleProductId = 3

Definition at line 74 of file product_bundle.php.

◆ $categoryLinkManagement

$categoryLinkManagement
Initial value:
= Bootstrap::getObjectManager()
->create(CategoryLinkManagementInterface::class)

Definition at line 152 of file product_bundle.php.

◆ $installer

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

Definition at line 28 of file product_bundle.php.

◆ $itemResource

$itemResource = Bootstrap::getObjectManager()->get(QuoteItem::class)

Definition at line 63 of file product_bundle.php.

◆ $product

$product = Bootstrap::getObjectManager()->create(Product::class)

Definition at line 39 of file product_bundle.php.

◆ $productId

$productId = 10

Definition at line 36 of file product_bundle.php.

◆ $productRepository

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

Definition at line 25 of file product_bundle.php.

◆ $registry

$registry = Bootstrap::getObjectManager()->get(Registry::class)

Definition at line 55 of file product_bundle.php.

◆ $website

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

Definition at line 31 of file product_bundle.php.

◆ $websiteIds

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

Definition at line 33 of file product_bundle.php.

◆ try

try
Initial value:
{
$productToDelete = $productRepository->getById(1)
$productRepository

Definition at line 58 of file product_bundle.php.