function Connection::getTarget
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::getTarget()
- 10 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::getTarget()
- 11.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::getTarget()
Returns the target this connection is associated with.
Return value
string|null The target string of this connection, or NULL if no target is set.
File
-
core/
lib/ Drupal/ Core/ Database/ Connection.php, line 742
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function getTarget() {
return $this->target;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.