public function Anonymizer::__construct in General Data Protection Regulation 8
Same name and namespace in other branches
- 8.2 modules/gdpr_tasks/src/Anonymizer.php \Drupal\gdpr_tasks\Anonymizer::__construct()
- 3.0.x 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.
File
- modules/
gdpr_tasks/ src/ Anonymizer.php, line 72
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) {
$this->database = $database;
$this->entityTypeManager = $entityTypeManager;
$this->currentUser = $currentUser;
$this->configFactory = $configFactory;
$this->traversalFactory = $traversalFactory;
}