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

        // load the frontend label value
        if ($frontendLabel = $this->getValue(ColumnKeys::FRONTEND_LABEL)) {
            // load the last attribute ID
            $attributeId = $this->getLastAttributeId();

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

            // return the prepared attribute label
            return $this->initializeEntity(
                array(
                    MemberNames::ATTRIBUTE_ID  => $attributeId,
                    MemberNames::STORE_ID      => $storeId,
                    MemberNames::VALUE         => $frontendLabel
                )
            );
        }
    }
protected function prepareAttributes()
    {

        // load the frontend label value
        if ($frontendLabel = $this->getValue(ColumnKeys::FRONTEND_LABEL)) {
            // load the last attribute ID
            $attributeId = $this->getLastAttributeId();

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

            // return the prepared attribute label
            return $this->initializeEntity(
                array(
                    MemberNames::ATTRIBUTE_ID  => $attributeId,
                    MemberNames::STORE_ID      => $storeId,
                    MemberNames::VALUE         => $frontendLabel
                )
            );
        }
    }
Prepare the attributes of the entity that has to be persisted.

@return array The prepared attributes