Database::$connections

An nested array of all active connections. It is keyed by database name and target.

Type: array

File

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

Class

Database
Primary front-controller for the database system.

Namespace

Drupal\Core\Database

Code

protected static $connections = [];

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