function Connection::getClientConnection
Returns the client-level database connection object.
This method should normally be used only within database driver code. Not doing so constitutes a risk of introducing code that is not database independent.
Return value
object The client-level database connection, for example \PDO.
File
-
core/
lib/ Drupal/ Core/ Database/ Connection.php, line 330
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function getClientConnection() : object {
return $this->connection;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.