src/Observers/AttributeLabelUpdateObserver.php
protected function initializeAttribute(array $attr)
    {

        // load the entity type ID for the value from the system configuration
        $entityTypeId = $this->getEntityTypeId();

        // load value, store ID
        $storeId = $attr[MemberNames::STORE_ID];

        // load the attribute code from the row
        $attributeCode = $this->getValue(ColumnKeys::ATTRIBUTE_CODE);

        // query whether or not an attribute label
        if ($attributeLabel = $this->loadAttributeLabelByEntityTypeIdAndAttributeCodeAndStoreId($entityTypeId, $attributeCode, $storeId)) {
            return $this->mergeEntity($attributeLabel, $attr);
        }

        // simply return the attributes
        return $attr;
    }
protected function initializeAttribute(array $attr)
    {

        // load the entity type ID for the value from the system configuration
        $entityTypeId = $this->getEntityTypeId();

        // load value, store ID
        $storeId = $attr[MemberNames::STORE_ID];

        // load the attribute code from the row
        $attributeCode = $this->getValue(ColumnKeys::ATTRIBUTE_CODE);

        // query whether or not an attribute label
        if ($attributeLabel = $this->loadAttributeLabelByEntityTypeIdAndAttributeCodeAndStoreId($entityTypeId, $attributeCode, $storeId)) {
            return $this->mergeEntity($attributeLabel, $attr);
        }

        // simply return the attributes
        return $attr;
    }
Initialize the attribute with the passed attributes and returns an instance.

@param array $attr The attribute attributes

@return array The initialized attribute