You are here

public function RightToAccessCompleteEvent::__construct in General Data Protection Regulation 8.2

Same name and namespace in other branches
  1. 8 modules/gdpr_tasks/src/Event/RightToAccessCompleteEvent.php \Drupal\gdpr_tasks\Event\RightToAccessCompleteEvent::__construct()
  2. 3.0.x modules/gdpr_tasks/src/Event/RightToAccessCompleteEvent.php \Drupal\gdpr_tasks\Event\RightToAccessCompleteEvent::__construct()

Constructs the object.

Parameters

\Drupal\Core\Session\AccountInterface $user: The user.

string $link: The link to the download.

File

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

Class

RightToAccessCompleteEvent
Event fired when a right to access request is completed.

Namespace

Drupal\gdpr_tasks\Event

Code

public function __construct(AccountInterface $user, $link) {
  $this->user = $user;
  $this->link = $link;
}