Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
products.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)
 
 $stockData
 
 $productsData
 
 $moduleManager = Bootstrap::getObjectManager()->get(Manager::class)
 

Variable Documentation

◆ $moduleManager

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

Definition at line 75 of file products.php.

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 20 of file products.php.

◆ $productFactory

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

Definition at line 22 of file products.php.

◆ $productRepository

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

Definition at line 24 of file products.php.

◆ $productsData

$productsData
Initial value:
= [
1 => 'Orange',
2 => 'Blue',
3 => 'White',
4 => 'Purple',
5 => 'Black'
]

Definition at line 54 of file products.php.

◆ $stockData

$stockData
Initial value:
= [
'SKU-1' => [
'qty' => 8.5,
'is_in_stock' => true,
'manage_stock' => true,
'is_qty_decimal' => true
],
'SKU-2' => [
'qty' => 5,
'is_in_stock' => true,
'manage_stock' => true,
'is_qty_decimal' => false
],
'SKU-3' => [
'qty' => 0,
'is_in_stock' => false,
'manage_stock' => true
],
'SKU-4' => [
'use_config_manage_stock' => false
],
'SKU-5' => [
'qty' => 0,
'is_in_stock' => false,
'manage_stock' => true
],
]
return false
Definition: gallery.phtml:36

Definition at line 27 of file products.php.