You are here

public static function DriverSettings::instanceFromData in Drupal driver for SQL Server and SQL Azure 8

Builds a DriverSettings instance from custom settings. Missing settings are merged from the application settings.

Parameters

mixed $configuration:

1 call to DriverSettings::instanceFromData()
Context::__construct in drivers/lib/Drupal/Driver/Database/sqlsrv/Context.php
Define the behaviour of the database driver during the scope of the life of this instance.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/DriverSettings.php, line 83

Class

DriverSettings
Global settings for the driver.

Namespace

Drupal\Driver\Database\sqlsrv

Code

public static function instanceFromData($configuration) {
  $configuration = array_merge(static::$default_driver_settings, $configuration);
  return new DriverSettings($configuration);
}