26 private $excludedAttributes;
36 \
Magento\CatalogWidget\Model\
Rule\Condition\ProductFactory $conditionFactory,
38 array $excludedAttributes = []
40 $this->productFactory = $conditionFactory;
41 parent::__construct($context,
$data);
42 $this->setType(\
Magento\CatalogWidget\Model\
Rule\Condition\Combine::class);
43 $this->excludedAttributes = $excludedAttributes;
51 $productAttributes = $this->productFactory->create()->loadAttributeOptions()->getAttributeOption();
54 if (!in_array(
$code, $this->excludedAttributes)) {
56 'value' => Product::class .
'|' .
$code,
61 $conditions = parent::getNewChildSelectOptions();
62 $conditions = array_merge_recursive(
66 'value' => \
Magento\CatalogWidget\Model\
Rule\Condition\Combine::class,
67 'label' =>
__(
'Conditions Combination'),