Connection::$target

Same name and namespace in other branches
  1. 8.9.x 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 35

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.