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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $storeManager = $objectManager->get(\Magento\Store\Model\StoreManager::class)
 
 $store = $storeManager->getStore('default')
 
 $product = $objectManager->create(\Magento\Catalog\Model\ProductRepository::class)->get('simple')
 
 $productAction = $objectManager->create(\Magento\Catalog\Model\Product\Action::class)
 

Variable Documentation

◆ $objectManager

Definition at line 12 of file product_for_search.php.

◆ $product

$product = $objectManager->create(\Magento\Catalog\Model\ProductRepository::class)->get('simple')

Definition at line 21 of file product_for_search.php.

◆ $productAction

$productAction = $objectManager->create(\Magento\Catalog\Model\Product\Action::class)

Definition at line 23 of file product_for_search.php.

◆ $store

$store = $storeManager->getStore('default')

Definition at line 18 of file product_for_search.php.

◆ $storeManager

$storeManager = $objectManager->get(\Magento\Store\Model\StoreManager::class)

Definition at line 15 of file product_for_search.php.