You are here

public function DrupalEncrypt::afterBackup in Backup and Migrate 5.0.x

File

src/Drupal/Filter/DrupalEncrypt.php, line 136

Class

DrupalEncrypt
@package Drupal\backup_migrate\Drupal\Filter

Namespace

Drupal\backup_migrate\Drupal\Filter

Code

public function afterBackup(BackupFileReadableInterface $file) {
  if ($this
    ->confGet('encrypt')) {
    $out = $this
      ->getTempFileManager()
      ->pushExt($file, 'ssl');
    $success = $this
      ->_encryptFile($file, $out);
    if ($out && $success) {
      return $out;
    }
  }
  return $file;
}