You are here

RightToBeForgottenCompleteEvent.php in General Data Protection Regulation 8

File

modules/gdpr_tasks/src/Event/RightToBeForgottenCompleteEvent.php
View source
<?php

namespace Drupal\gdpr_tasks\Event;

use Symfony\Component\EventDispatcher\Event;

/**
 * Event fired once a Right to be Forgotten event is complete.
 *
 * @package Drupal\gdpr_tasks\Event
 */
class RightToBeForgottenCompleteEvent extends Event {
  const EVENT_NAME = 'gdpr_tasks.rules_rtf_complete';

  /**
   * The recipient's email address.
   *
   * This is not a full reference to the user as all data has been anonymized.
   *
   * @var string
   */
  public $email;

  /**
   * Constructs the object.
   *
   * @param string $email
   *   The user for whom the request was made.
   */
  public function __construct($email) {
    $this->email = $email;
  }

}

Classes

Namesort descending Description
RightToBeForgottenCompleteEvent Event fired once a Right to be Forgotten event is complete.