Model/Connector/Order.php
public function _getAttributesArray($attributeSetId)
    {
        $result = [];
        $attributes = $this->attributeCollection->create()
            ->setAttributeSetFilter($attributeSetId)
            ->getItems();

        foreach ($attributes as $attribute) {
            $result[] = $attribute->getAttributeCode();
        }

        return $result;
    }
public function _getAttributesArray($attributeSetId)
    {
        $result = [];
        $attributes = $this->attributeCollection->create()
            ->setAttributeSetFilter($attributeSetId)
            ->getItems();

        foreach ($attributes as $attribute) {
            $result[] = $attribute->getAttributeCode();
        }

        return $result;
    }
public function _getAttributesArray ( $ attributeSetId ) { $ result = [ ] ; $ attributes = $ this -> attributeCollection -> create ( ) -> setAttributeSetFilter ( $ attributeSetId ) -> getItems ( ) ; foreach ( $ attributes as $ attribute ) { $ result [ ] = $ attribute -> getAttributeCode ( ) ; } return $ result ; }
Get attributes from attribute set.

@param int $attributeSetId

@return array
Get attributes from attribute set .