Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\Product::loadAttributeOptions PHP Method

loadAttributeOptions() public method

{@inheritDoc}
    public function loadAttributeOptions()
    {
        $productAttributes = $this->attributeList->getAttributeCollection();
        $attributes = [];
        foreach ($productAttributes as $attribute) {
            $attributes[$attribute->getAttributeCode()] = $attribute->getFrontendLabel();
        }
        $this->_addSpecialAttributes($attributes);
        asort($attributes);
        $this->setAttributeOption($attributes);
        return $this;
    }