You are here

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

Same name and namespace in other branches
  1. 8.2 modules/gdpr_tasks/src/Form/TaskActionsForm.php \Drupal\gdpr_tasks\Form\TaskActionsForm::__construct()
  2. 3.0.x modules/gdpr_tasks/src/Form/TaskActionsForm.php \Drupal\gdpr_tasks\Form\TaskActionsForm::__construct()

Constructs a TaskActionsForm object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\gdpr_tasks\Anonymizer $anonymizer: The GDPR Task anonymizer.

\Drupal\gdpr_tasks\TaskManager $task_manager: The GDPR Task manager.

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

Overrides ContentEntityForm::__construct

File

modules/gdpr_tasks/src/Form/TaskActionsForm.php, line 70

Class

TaskActionsForm
Form controller for Task edit forms.

Namespace

Drupal\gdpr_tasks\Form

Code

public function __construct(EntityManagerInterface $entity_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL, EventDispatcherInterface $event_dispatcher, Anonymizer $anonymizer, TaskManager $task_manager, QueueFactory $queue) {
  parent::__construct($entity_manager, $entity_type_bundle_info, $time);
  $this->eventDispatcher = $event_dispatcher;
  $this->anonymizer = $anonymizer;
  $this->taskManager = $task_manager;
  $this->queue = $queue
    ->get('gdpr_tasks_process_gdpr_sar');
}