Developer Guide

Latest Stable Version License: MIT

Packagist Packagist

GitHub forks GitHub stars GitHub watchers


BACK TO THE MENU


The following documentation explains how to add your own processors to the workflow.

Delete Customer Data

Deleting the customer data is one the erasure strategy. Whole data given to this type of processor is deleted.
It implements the following interface:

The processors are registered to the following pool, if you want to register you own implementation, add it to the pool via the di.xml file configuration:

<!-- Delete Customer Management -->
<virtualType name="Opengento\Gdpr\Model\Customer\Delete\ProcessorPool" type="Magento\Framework\ObjectManager\TMap">
    <arguments>
        <argument name="type" xsi:type="string">Opengento\Gdpr\Service\Erase\ProcessorInterface</argument>
        <argument name="array" xsi:type="array">
            <item name="subscriber" xsi:type="string">Opengento\Gdpr\Model\Customer\Delete\Processor\SubscriberDataProcessor</item>
            <item name="quote" xsi:type="string">Opengento\Gdpr\Model\Customer\Delete\Processor\QuoteDataProcessor</item>
            <item name="order" xsi:type="string">Opengento\Gdpr\Model\Customer\Delete\Processor\OrderDataProcessor</item>
            <item name="customer_address" xsi:type="string">Opengento\Gdpr\Model\Customer\Delete\Processor\CustomerAddressDataProcessor</item>
            <item name="customer" xsi:type="string">Opengento\Gdpr\Model\Customer\Delete\Processor\CustomerDataProcessor</item>
        </argument>
    </arguments>
</virtualType>
<!-- Delete Guest Management -->
<virtualType name="Opengento\Gdpr\Model\Order\Delete\ProcessorPool" type="Magento\Framework\ObjectManager\TMap">
    <arguments>
        <argument name="type" xsi:type="string">Opengento\Gdpr\Service\Erase\ProcessorInterface</argument>
        <argument name="array" xsi:type="array">
            <item name="subscriber" xsi:type="string">Opengento\Gdpr\Model\Order\Delete\Processor\SubscriberDataProcessor</item>
            <item name="quote" xsi:type="string">Opengento\Gdpr\Model\Order\Delete\Processor\QuoteDataProcessor</item>
            <item name="order" xsi:type="string">Opengento\Gdpr\Model\Order\Delete\Processor\OrderDataProcessor</item>
        </argument>
    </arguments>
</virtualType>