function Updater::getInstallArgs

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

Store the default parameters for the Updater.

Parameters

array $overrides: An array of overrides for the default parameters.

Return value

array An array of configuration parameters for an update or install operation.

2 calls to Updater::getInstallArgs()
Updater::install in includes/updater.inc
Installs a Drupal project, returns a list of next actions.
Updater::update in includes/updater.inc
Updates a Drupal project, returns a list of next actions.

File

includes/updater.inc, line 209

Class

Updater
Base class for Updaters used in Drupal.

Code

protected function getInstallArgs($overrides = array()) {
    $args = array(
        'make_backup' => FALSE,
        'install_dir' => $this->getInstallDirectory(),
        'backup_dir' => $this->getBackupDir(),
    );
    return array_merge($args, $overrides);
}

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