You are here

private function Anonymizer::checkExportDirectoryExists 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::checkExportDirectoryExists()
  2. 8 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 189

Class

Anonymizer
Anonymizes or removes field values for GDPR.

Namespace

Drupal\gdpr_tasks

Code

private function checkExportDirectoryExists() {
  $directory = $this->configFactory
    ->get(RemovalSettingsForm::CONFIG_KEY)
    ->get(RemovalSettingsForm::EXPORT_DIRECTORY);
  return !empty($directory) && $this->fileSystem
    ->prepareDirectory($directory);
}