You are here

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

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

Constructs a new MessageDeletionWorker object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

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

\Drupal\Component\Uuid\UuidInterface $uuid: The uuid service.

\Drupal\Core\Field\FieldTypePluginManager $field_type_plugin_manager: The field type plugin manager.

\Drupal\Core\Queue\QueueInterface $queue: The gdpr sars task queue.

\Drupal\gdpr_fields\EntityTraversalFactory $rta_traversal: The rta traversal service.

\Drupal\Core\File\FileSystem $file_system: The file system.

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

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides PluginBase::__construct

File

modules/gdpr_tasks/src/Plugin/QueueWorker/GdprTasksSarWorker.php, line 129

Class

GdprTasksSarWorker
Processes SARs tasks when data processing is required.

Namespace

Drupal\gdpr_tasks\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityTypeManagerInterface $entity_type_manager, UuidInterface $uuid, FieldTypePluginManager $field_type_plugin_manager, QueueInterface $queue, EntityTraversalFactory $rta_traversal, FileSystem $file_system, MessengerInterface $messenger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->taskStorage = $entity_type_manager
    ->getStorage('gdpr_task');
  $this->uuid = $uuid;
  $this->fieldTypePluginManager = $field_type_plugin_manager;
  $this->queue = $queue;
  $this->rtaTraversal = $rta_traversal;
  $this->fileSystem = $file_system;
  $this->messenger = $messenger;
}