private function Anonymizer::checkExportDirectoryExists in General Data Protection Regulation 7
Checks that the export directory has been set.
Return value
bool Indicates whether the export directory has been configured and exists.
1 call to Anonymizer::checkExportDirectoryExists()
- Anonymizer::run in modules/
gdpr_tasks/ src/ Anonymizer.php - Runs anonymization routines against a user.
File
- modules/
gdpr_tasks/ src/ Anonymizer.php, line 238
Class
- Anonymizer
- Anonymizes or removes field values for GDPR.
Code
private function checkExportDirectoryExists() {
// @todo Configure export directory.
$directory = 'private://gdpr-export';
return !empty($directory) && file_prepare_directory($directory, FILE_CREATE_DIRECTORY);
}