src/Observers/PreLoadAttributeOptionIdObserver.php
protected function process()
    {

        // load the store value and the attribute code
        $value = $this->getValue(ColumnKeys::ADMIN_STORE_VALUE);
        $attributeCode = $this->getValue(ColumnKeys::ATTRIBUTE_CODE);

        // query whether or not, we've found a new attribute code => means we've found a new EAV attribute
        if ($this->hasBeenProcessed($attributeCode, $value)) {
            return;
        }

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

        // load the ID of the admin store
        $storeId = $this->getStoreId(StoreViewCodes::ADMIN);

        // load the EAV attribute option with the passed value
        $attributeOption = $this->loadAttributeOptionByEntityTypeIdAndAttributeCodeAndStoreIdAndValue($entityTypeId, $attributeCode, $storeId, $value);

        // preserve the attribute ID for the passed EAV attribute option
        $this->preLoadOptionId($attributeOption);
    }
protected function process()
    {

        // load the store value and the attribute code
        $value = $this->getValue(ColumnKeys::ADMIN_STORE_VALUE);
        $attributeCode = $this->getValue(ColumnKeys::ATTRIBUTE_CODE);

        // query whether or not, we've found a new attribute code => means we've found a new EAV attribute
        if ($this->hasBeenProcessed($attributeCode, $value)) {
            return;
        }

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

        // load the ID of the admin store
        $storeId = $this->getStoreId(StoreViewCodes::ADMIN);

        // load the EAV attribute option with the passed value
        $attributeOption = $this->loadAttributeOptionByEntityTypeIdAndAttributeCodeAndStoreIdAndValue($entityTypeId, $attributeCode, $storeId, $value);

        // preserve the attribute ID for the passed EAV attribute option
        $this->preLoadOptionId($attributeOption);
    }
Process the observer's business logic.

@return array The processed row