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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $registry = $objectManager->get(\Magento\Framework\Registry::class)
 
 $collection = $objectManager->create(\Magento\Catalog\Model\ResourceModel\Product\Collection::class)
 
 $productAttributeRepository
 
 $nameAttribute = $productAttributeRepository->get('name')
 
 $descriptionAttribute = $productAttributeRepository->get('description')
 

Variable Documentation

◆ $collection

$collection = $objectManager->create(\Magento\Catalog\Model\ResourceModel\Product\Collection::class)

Definition at line 17 of file search_weight_products_rollback.php.

◆ $descriptionAttribute

$descriptionAttribute = $productAttributeRepository->get('description')

Definition at line 35 of file search_weight_products_rollback.php.

◆ $nameAttribute

$nameAttribute = $productAttributeRepository->get('name')

Definition at line 31 of file search_weight_products_rollback.php.

◆ $objectManager

Definition at line 10 of file search_weight_products_rollback.php.

◆ $productAttributeRepository

$productAttributeRepository
Initial value:
\Magento\Catalog\Api\ProductAttributeRepositoryInterface::class
)

Definition at line 27 of file search_weight_products_rollback.php.

◆ $registry

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

Definition at line 11 of file search_weight_products_rollback.php.