private function getAttributesList()
    {
        if (null === $this->attributesList) {
            $this->attributesList = [];

            $collection = $this->attributesCollectionFactory->create();

            foreach ($collection as $attribute) {
                $this->attributesList[$attribute->getId()] = [
                    'value' => $attribute->getAttributeCode(),
                    'label' => $attribute->getFrontendLabel(),
                ];
            }
        }

        return $this->attributesList;
    }
private function getAttributesList()
    {
        if (null === $this->attributesList) {
            $this->attributesList = [];

            $collection = $this->attributesCollectionFactory->create();

            foreach ($collection as $attribute) {
                $this->attributesList[$attribute->getId()] = [
                    'value' => $attribute->getAttributeCode(),
                    'label' => $attribute->getFrontendLabel(),
                ];
            }
        }

        return $this->attributesList;
    }
private function getAttributesList ( ) { if ( null === $ this -> attributesList ) { $ this -> attributesList = [ ] ; $ collection = $ this -> attributesCollectionFactory -> create ( ) ; foreach ( $ collection as $ attribute ) { $ this -> attributesList [ $ attribute -> getId ( ) ] = [ 'value' => $ attribute -> getAttributeCode ( ) , 'label' => $ attribute -> getFrontendLabel ( ) , ] ; } } return $ this -> attributesList ; }
Retrieve list of attributes that can be used to define virtual attributes rules.

@return array
Retrieve list of attributes that can be used to define virtual attributes rules .