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

        // initialize the data to load the EAV attribute option swatch
        $optionId = isset($attr[MemberNames::OPTION_ID]) ? $attr[MemberNames::OPTION_ID] : null;
        $storeId = $this->getRowStoreId(StoreViewCodes::ADMIN);

        // try to load the EAV attribute option swatch
        if ($attributeOptionSwatch = $this->loadAttributeOptionSwatchByOptionIdAndStoreId($optionId, $storeId)) {
            return $this->mergeEntity($attributeOptionSwatch, $attr);
        }

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

        // initialize the data to load the EAV attribute option swatch
        $optionId = isset($attr[MemberNames::OPTION_ID]) ? $attr[MemberNames::OPTION_ID] : null;
        $storeId = $this->getRowStoreId(StoreViewCodes::ADMIN);

        // try to load the EAV attribute option swatch
        if ($attributeOptionSwatch = $this->loadAttributeOptionSwatchByOptionIdAndStoreId($optionId, $storeId)) {
            return $this->mergeEntity($attributeOptionSwatch, $attr);
        }

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

@param array $attr The EAV attribute option value attributes

@return array The initialized EAV attribute option value