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

Go to the source code of this file.

Variables

 $repository
 
 $skuAttribute
 
 $data = $skuAttribute->getData()
 
 $data ['is_used_for_promo_rules'] = 1
 
 $salesRule = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\SalesRule\Model\Rule::class)
 
 $registry = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class)
 

Variable Documentation

◆ $data [1/2]

$data = $skuAttribute->getData()

Definition at line 18 of file rules_sku_exclude.php.

◆ $data [2/2]

$data[ 'is_used_for_promo_rules'] = 1

Definition at line 19 of file rules_sku_exclude.php.

◆ $registry

$registry = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class)

Definition at line 76 of file rules_sku_exclude.php.

◆ $repository

$repository
Initial value:
->create(\Magento\Eav\Api\AttributeRepositoryInterface::class)

Definition at line 10 of file rules_sku_exclude.php.

◆ $salesRule

$salesRule = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\SalesRule\Model\Rule::class)

Definition at line 24 of file rules_sku_exclude.php.

◆ $skuAttribute

$skuAttribute
Initial value:
= $repository->get(
'catalog_product',
'sku'
)

Definition at line 14 of file rules_sku_exclude.php.