function Updater::getBackupDir

Same name in other branches
  1. 9 core/lib/Drupal/Core/Updater/Updater.php \Drupal\Core\Updater\Updater::getBackupDir()
  2. 8.9.x core/lib/Drupal/Core/Updater/Updater.php \Drupal\Core\Updater\Updater::getBackupDir()
  3. 10 core/lib/Drupal/Core/Updater/Updater.php \Drupal\Core\Updater\Updater::getBackupDir()
  4. 11.x core/lib/Drupal/Core/Updater/Updater.php \Drupal\Core\Updater\Updater::getBackupDir()

Return the full path to a directory where backups should be written.

1 call to Updater::getBackupDir()
Updater::getInstallArgs in includes/updater.inc
Store the default parameters for the Updater.

File

includes/updater.inc, line 379

Class

Updater
Base class for Updaters used in Drupal.

Code

public function getBackupDir() {
    return file_stream_wrapper_get_instance_by_scheme('temporary')->getDirectoryPath();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.