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

        // load the attribute + attribute set ID
        $attributeId = $attr[MemberNames::ATTRIBUTE_ID];
        $attributeSetId = $attr[MemberNames::ATTRIBUTE_SET_ID];

        // try to load the entity attribute with the IDs
        if ($entityAttribute = $this->loadEntityAttributeByAttributeIdAndAttributeSetId($attributeId, $attributeSetId)) {
            return $this->mergeEntity($entityAttribute, $attr);
        }

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

        // load the attribute + attribute set ID
        $attributeId = $attr[MemberNames::ATTRIBUTE_ID];
        $attributeSetId = $attr[MemberNames::ATTRIBUTE_SET_ID];

        // try to load the entity attribute with the IDs
        if ($entityAttribute = $this->loadEntityAttributeByAttributeIdAndAttributeSetId($attributeId, $attributeSetId)) {
            return $this->mergeEntity($entityAttribute, $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