You are here

private function BackupDatabaseFileHandler::setConfig in Backup Database 8

Set default file info.

1 call to BackupDatabaseFileHandler::setConfig()
BackupDatabaseFileHandler::setupFile in src/BackupDatabaseFileHandler.php
Handles file generation.

File

src/BackupDatabaseFileHandler.php, line 88
Contains \Drupal\backup_db\BackupDatabaseFileHandler

Class

BackupDatabaseFileHandler
BackupDatabaseFileHandler class.

Namespace

Drupal\backup_db

Code

private function setConfig($config) {
  $this->config = [
    'date' => \Drupal::service('date.formatter')
      ->format(time(), $config
      ->get('date')),
    'compress' => $config
      ->get('settings.compress'),
    'name' => $config
      ->get('filename'),
    'path' => $config
      ->get('path'),
  ];
}