You are here

public function GDPRController::__construct in General Data Protection Regulation 8

Same name in this branch
  1. 8 modules/gdpr_fields/src/Controller/GDPRController.php \Drupal\gdpr_fields\Controller\GDPRController::__construct()
  2. 8 modules/gdpr_tasks/src/Controller/GDPRController.php \Drupal\gdpr_tasks\Controller\GDPRController::__construct()
Same name and namespace in other branches
  1. 8.2 modules/gdpr_tasks/src/Controller/GDPRController.php \Drupal\gdpr_tasks\Controller\GDPRController::__construct()
  2. 3.0.x modules/gdpr_tasks/src/Controller/GDPRController.php \Drupal\gdpr_tasks\Controller\GDPRController::__construct()

Constructs a new GDPRController.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Drupal\gdpr_tasks\TaskManager $task_manager: The task manager service.

\Drupal\Core\Queue\QueueFactory $queue: Queue factory.

File

modules/gdpr_tasks/src/Controller/GDPRController.php, line 62

Class

GDPRController
Returns responses for Views UI routes.

Namespace

Drupal\gdpr_tasks\Controller

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountProxyInterface $current_user, MessengerInterface $messenger, TaskManager $task_manager, QueueFactory $queue) {
  $this->entityTypeManager = $entity_type_manager;
  $this->currentUser = $current_user;
  $this->messenger = $messenger;
  $this->taskManager = $task_manager;
  $this->queue = $queue
    ->get('gdpr_tasks_process_gdpr_sar');
}