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

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $productFactory = $objectManager->get(ProductInterfaceFactory::class)
 
 $productRepository = $objectManager->get(ProductRepositoryInterface::class)
 
 $productWebsiteLinkRepository = $objectManager->get(ProductWebsiteLinkRepositoryInterface::class)
 
 $productWebsiteLinkFactory = $objectManager->get(ProductWebsiteLinkInterfaceFactory::class)
 
 $websiteRepository = $objectManager->get(WebsiteRepositoryInterface::class)
 
 $websites = $websiteRepository->getList()
 
 $productData
 
 $moduleManager = Bootstrap::getObjectManager()->get(Manager::class)
 

Variable Documentation

◆ $moduleManager

$moduleManager = Bootstrap::getObjectManager()->get(Manager::class)

Definition at line 86 of file products_virtual.php.

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 24 of file products_virtual.php.

◆ $productData

$productData
Initial value:
= [
'VIRT-1' => [
'qty' => 33,
'is_in_stock' => true,
'manage_stock' => true
],
'VIRT-2' => [
'qty' => 30,
'is_in_stock' => true,
'manage_stock' => true
],
'VIRT-3' => [
'qty' => 2,
'is_in_stock' => true,
'manage_stock' => true
],
'VIRT-4' => [
'qty' => 6,
'is_in_stock' => false,
'manage_stock' => true
]
]

Definition at line 38 of file products_virtual.php.

◆ $productFactory

$productFactory = $objectManager->get(ProductInterfaceFactory::class)

Definition at line 26 of file products_virtual.php.

◆ $productRepository

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

Definition at line 28 of file products_virtual.php.

◆ $productWebsiteLinkFactory

$productWebsiteLinkFactory = $objectManager->get(ProductWebsiteLinkInterfaceFactory::class)

Definition at line 33 of file products_virtual.php.

◆ $productWebsiteLinkRepository

$productWebsiteLinkRepository = $objectManager->get(ProductWebsiteLinkRepositoryInterface::class)

Definition at line 31 of file products_virtual.php.

◆ $websiteRepository

$websiteRepository = $objectManager->get(WebsiteRepositoryInterface::class)

Definition at line 35 of file products_virtual.php.

◆ $websites

$websites = $websiteRepository->getList()

Definition at line 36 of file products_virtual.php.