src/Observers/AttributeOptionSwatchObserver.php
protected function prepareAttributes()
    {

        // load the option ID
        $optionId = $this->getLastOptionId();

        // load the store ID, value + type
        $storeId = $this->getRowStoreId(StoreViewCodes::ADMIN);
        $value = $this->getValue(ColumnKeys::SWATCH_VALUE);
        $type = $this->getValue(ColumnKeys::SWATCH_TYPE);

        // load the attribute option swatch value/type
        if ($value !== null && $type !== null) {
            // return the prepared attribute option
            return $this->initializeEntity(
                array(
                    MemberNames::OPTION_ID  => $optionId,
                    MemberNames::STORE_ID   => $storeId,
                    MemberNames::VALUE      => $value,
                    MemberNames::TYPE       => $type
                )
            );
        }
    }
protected function prepareAttributes()
    {

        // load the option ID
        $optionId = $this->getLastOptionId();

        // load the store ID, value + type
        $storeId = $this->getRowStoreId(StoreViewCodes::ADMIN);
        $value = $this->getValue(ColumnKeys::SWATCH_VALUE);
        $type = $this->getValue(ColumnKeys::SWATCH_TYPE);

        // load the attribute option swatch value/type
        if ($value !== null && $type !== null) {
            // return the prepared attribute option
            return $this->initializeEntity(
                array(
                    MemberNames::OPTION_ID  => $optionId,
                    MemberNames::STORE_ID   => $storeId,
                    MemberNames::VALUE      => $value,
                    MemberNames::TYPE       => $type
                )
            );
        }
    }
Prepare the attributes of the entity that has to be persisted.

@return array The prepared attributes