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

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $productRepository = $objectManager->get(ProductRepositoryInterface::class)
 
 $stockItemRepository = $objectManager->get(StockItemRepositoryInterface::class)
 
 $skus = ['SKU-1', 'SKU-2', 'SKU-3']
 

Variable Documentation

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 12 of file enable_manage_stock_for_products.php.

◆ $productRepository

$productRepository = $objectManager->get(ProductRepositoryInterface::class)

Definition at line 15 of file enable_manage_stock_for_products.php.

◆ $skus

$skus = ['SKU-1', 'SKU-2', 'SKU-3']

Definition at line 18 of file enable_manage_stock_for_products.php.

◆ $stockItemRepository

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

Definition at line 16 of file enable_manage_stock_for_products.php.