Database::setMultipleConnectionInfo

final public static Database::setMultipleConnectionInfo(array $databases)

Sets connection information for multiple databases.

Parameters

array $databases: A multi-dimensional array specifying database connection parameters, as defined in settings.php.

File

core/lib/Drupal/Core/Database/Database.php, line 287

Class

Database
Primary front-controller for the database system.

Namespace

Drupal\Core\Database

Code

final public static function setMultipleConnectionInfo(array $databases) {
  foreach ($databases as $key => $targets) {
    foreach ($targets as $target => $info) {
      self::addConnectionInfo($key, $target, $info);
    }
  }
}
doc_Drupal
2016-10-29 08:59:33
Comments
Leave a Comment

Please login to continue.