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

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $registry = $objectManager->get(\Magento\Framework\Registry::class)
 
 $productRepository
 
 $productSkus = ['configurable_option_single_child', 'configurable_with_single_child']
 
 $searchCriteriaBuilder = Bootstrap::getObjectManager()->get(SearchCriteriaBuilder::class)
 
 $result = $productRepository->getList($searchCriteriaBuilder->create())
 
 foreach ( $result->getItems() as $product)
 

Variable Documentation

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

◆ $productRepository

$productRepository
Initial value:
= Bootstrap::getObjectManager()
->get(\Magento\Catalog\Api\ProductRepositoryInterface::class)

Definition at line 21 of file product_configurable_with_single_child_rollback.php.

◆ $productSkus

$productSkus = ['configurable_option_single_child', 'configurable_with_single_child']

◆ $registry

$registry = $objectManager->get(\Magento\Framework\Registry::class)

◆ $result

$result = $productRepository->getList($searchCriteriaBuilder->create())

◆ $searchCriteriaBuilder

$searchCriteriaBuilder = Bootstrap::getObjectManager()->get(SearchCriteriaBuilder::class)

◆ foreach

foreach($result->getItems() as $product)