You are here

public static function ConnectionSettings::instanceFromData in Drupal driver for SQL Server and SQL Azure 8.2

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

Parameters

mixed $configuration:

2 calls to ConnectionSettings::instanceFromData()
Connection::open in drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php
Opens a PDO connection.
SqlsrvConnectionTest::setUp in tests/src/Unit/SqlsrvConnectionTest.php

File

drivers/lib/Drupal/Driver/Database/sqlsrv/ConnectionSettings.php, line 50

Class

ConnectionSettings
Global settings for the driver.

Namespace

Drupal\Driver\Database\sqlsrv

Code

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