public function Updater::getBackupDir

public Updater::getBackupDir()

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

File

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

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();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Updater!Updater.php/function/Updater::getBackupDir/8.1.x