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

Go to the source code of this file.

Variables

 $stockRepository = Bootstrap::getObjectManager()->get(StockRepositoryInterface::class)
 
 $salesChannelFactory = Bootstrap::getObjectManager()->get(SalesChannelInterfaceFactory::class)
 
 $websiteCodes = ['eu_website', 'us_website', 'global_website']
 
 $defaultStock = $stockRepository->get(1)
 
 $extensionAttributes = $defaultStock->getExtensionAttributes()
 
 $salesChannels = $extensionAttributes->getSalesChannels()
 

Variable Documentation

◆ $defaultStock

$defaultStock = $stockRepository->get(1)

Definition at line 19 of file stock_website_sales_channels_rollback.php.

◆ $extensionAttributes

$extensionAttributes = $defaultStock->getExtensionAttributes()

Definition at line 20 of file stock_website_sales_channels_rollback.php.

◆ $salesChannelFactory

$salesChannelFactory = Bootstrap::getObjectManager()->get(SalesChannelInterfaceFactory::class)

Definition at line 16 of file stock_website_sales_channels_rollback.php.

◆ $salesChannels

$salesChannels = $extensionAttributes->getSalesChannels()

Definition at line 21 of file stock_website_sales_channels_rollback.php.

◆ $stockRepository

$stockRepository = Bootstrap::getObjectManager()->get(StockRepositoryInterface::class)

Definition at line 14 of file stock_website_sales_channels_rollback.php.

◆ $websiteCodes

$websiteCodes = ['eu_website', 'us_website', 'global_website']

Definition at line 18 of file stock_website_sales_channels_rollback.php.