private function Anonymizer::checkExportDirectoryExists 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::checkExportDirectoryExists()
- 3.0.x modules/gdpr_tasks/src/Anonymizer.php \Drupal\gdpr_tasks\Anonymizer::checkExportDirectoryExists()
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 177
Class
- Anonymizer
- Anonymizes or removes field values for GDPR.
Namespace
Drupal\gdpr_tasksCode
private function checkExportDirectoryExists() {
$directory = $this->configFactory
->get(RemovalSettingsForm::CONFIG_KEY)
->get(RemovalSettingsForm::EXPORT_DIRECTORY);
return !empty($directory) && \file_prepare_directory($directory);
}