function Updater::getBackupDir

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

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

1 call to Updater::getBackupDir()
Updater::getInstallArgs in core/lib/Drupal/Core/Updater/Updater.php
Stores the default parameters for the Updater.

File

core/lib/Drupal/Core/Updater/Updater.php, line 399

Class

Updater
Defines the base class for Updaters used in Drupal.

Namespace

Drupal\Core\Updater

Code

public function getBackupDir() {
    return \Drupal::service('stream_wrapper_manager')->getViaScheme('temporary')
        ->getDirectoryPath();
}

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