Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Updater.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal