src/Observers/AttributeOptionValueUpdateObserver.php
protected function initializeAttribute(array $attr)
    {
        // initialize the data to load the EAV attribute option
        $optionId = $this->getLastOptionId();
        $storeId = $this->getRowStoreId(StoreViewCodes::ADMIN);

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

        // simply return the attributes
        return $attr;
    }
protected function initializeAttribute(array $attr)
    {
        // initialize the data to load the EAV attribute option
        $optionId = $this->getLastOptionId();
        $storeId = $this->getRowStoreId(StoreViewCodes::ADMIN);

        // try to load the EAV attribute option value
        if ($attributeOptionValue = $this->loadAttributeOptionValueByOptionIdAndStoreId($optionId, $storeId)) {
            return $this->mergeEntity($attributeOptionValue, $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