You are here

class RightToAccessCompleteEvent in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_tasks/src/Event/RightToAccessCompleteEvent.php \Drupal\gdpr_tasks\Event\RightToAccessCompleteEvent
  2. 3.0.x modules/gdpr_tasks/src/Event/RightToAccessCompleteEvent.php \Drupal\gdpr_tasks\Event\RightToAccessCompleteEvent

Event fired when a right to access request is completed.

@package Drupal\gdpr_tasks\Event

Hierarchy

Expanded class hierarchy of RightToAccessCompleteEvent

File

modules/gdpr_tasks/src/Event/RightToAccessCompleteEvent.php, line 13

Namespace

Drupal\gdpr_tasks\Event
View source
class RightToAccessCompleteEvent extends Event {
  const EVENT_NAME = 'gdpr_tasks.rules_rta_complete';

  /**
   * The user who for whom the request was made.
   *
   * @var \Drupal\Core\Session\AccountInterface
   */
  public $user;

  /**
   * The link to the data export.
   *
   * @var string
   */
  public $link;

  /**
   * Constructs the object.
   *
   * @param \Drupal\Core\Session\AccountInterface $user
   *   The user.
   * @param string $link
   *   The link to the download.
   */
  public function __construct(AccountInterface $user, $link) {
    $this->user = $user;
    $this->link = $link;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RightToAccessCompleteEvent::$link public property The link to the data export.
RightToAccessCompleteEvent::$user public property The user who for whom the request was made.
RightToAccessCompleteEvent::EVENT_NAME constant
RightToAccessCompleteEvent::__construct public function Constructs the object.