Connection::$target

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::target
  2. 10 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::target
  3. 11.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::target

The database target this connection is for.

We need this information for later auditing and logging.

Type: string|null

File

core/lib/Drupal/Core/Database/Connection.php, line 26

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

protected $target = NULL;

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