public function Anonymizer::__construct in General Data Protection Regulation 3.0.x
Same name and namespace in other branches
- 8.2 modules/gdpr_tasks/src/Anonymizer.php \Drupal\gdpr_tasks\Anonymizer::__construct()
- 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_tasksCode
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;
}