Database::$activeKey

Same name in other branches
  1. 7.x includes/database/database.inc \Database::activeKey
  2. 9 core/lib/Drupal/Core/Database/Database.php \Drupal\Core\Database\Database::activeKey
  3. 8.9.x core/lib/Drupal/Core/Database/Database.php \Drupal\Core\Database\Database::activeKey
  4. 11.x core/lib/Drupal/Core/Database/Database.php \Drupal\Core\Database\Database::activeKey

The key of the currently active database connection.

Type: string

File

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

Class

Database
Primary front-controller for the database system.

Namespace

Drupal\Core\Database

Code

protected static $activeKey = 'default';

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