Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
QuoteConfigProductAttributes.php
Go to the documentation of this file.
1 <?php
7 
11 
13 {
17  protected $_ruleResource;
18 
22  public function __construct(RuleResource $ruleResource)
23  {
24  $this->_ruleResource = $ruleResource;
25  }
26 
36  public function afterGetProductAttributes(\Magento\Quote\Model\Quote\Config $subject, array $attributeKeys)
37  {
38  $attributes = $this->_ruleResource->getActiveAttributes();
39  foreach ($attributes as $attribute) {
40  $attributeKeys[] = $attribute['attribute_code'];
41  }
42  return $attributeKeys;
43  }
44 }
afterGetProductAttributes(\Magento\Quote\Model\Quote\Config $subject, array $attributeKeys)
$attributes
Definition: matrix.phtml:13