public function Updater::getBackupDir in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Updater/Updater.php \Drupal\Core\Updater\Updater::getBackupDir()
 - 9 core/lib/Drupal/Core/Updater/Updater.php \Drupal\Core\Updater\Updater::getBackupDir()
 
Returns the full path to a directory where backups should be written.
File
- core/
lib/ Drupal/ Core/ Updater/ Updater.php, line 380  
Class
- Updater
 - Defines the base class for Updaters used in Drupal.
 
Namespace
Drupal\Core\UpdaterCode
public function getBackupDir() {
  return \Drupal::service('stream_wrapper_manager')
    ->getViaScheme('temporary')
    ->getDirectoryPath();
}