Connection::$target

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::target
  2. 8.9.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::target
  3. 10 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 37

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.