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

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $stockItemRepository = $objectManager->get(StockItemRepositoryInterface::class)
 
 $product = $productRepository->get('simple_10')
 
 $stockItem = $product->getExtensionAttributes()->getStockItem()
 

Variable Documentation

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 15 of file configurable_options_advanced_inventory.php.

◆ $product

$product = $productRepository->get('simple_10')

Definition at line 21 of file configurable_options_advanced_inventory.php.

◆ $stockItem

$stockItem = $product->getExtensionAttributes()->getStockItem()

Definition at line 24 of file configurable_options_advanced_inventory.php.

◆ $stockItemRepository

$stockItemRepository = $objectManager->get(StockItemRepositoryInterface::class)

Definition at line 18 of file configurable_options_advanced_inventory.php.