You are here

public function Anonymizer::__construct in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_tasks/src/Anonymizer.php \Drupal\gdpr_tasks\Anonymizer::__construct()
  2. 8 modules/gdpr_tasks/src/Anonymizer.php \Drupal\gdpr_tasks\Anonymizer::__construct()

Anonymizer constructor.

Parameters

\Drupal\Core\Database\Connection $database: The database connection.

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

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.

\Drupal\gdpr_fields\EntityTraversalFactory $traversalFactory: Instantiates a traverser class.

\Drupal\Core\File\FileSystemInterface $fileSystem: Filesystem.

File

modules/gdpr_tasks/src/Anonymizer.php, line 85

Class

Anonymizer
Anonymizes or removes field values for GDPR.

Namespace

Drupal\gdpr_tasks

Code

public function __construct(Connection $database, EntityTypeManagerInterface $entityTypeManager, AccountProxyInterface $currentUser, ConfigFactoryInterface $configFactory, EntityTraversalFactory $traversalFactory, FileSystemInterface $fileSystem) {
  $this->database = $database;
  $this->entityTypeManager = $entityTypeManager;
  $this->currentUser = $currentUser;
  $this->configFactory = $configFactory;
  $this->traversalFactory = $traversalFactory;
  $this->fileSystem = $fileSystem;
}