function Connection::getClientConnection

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\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\Database

Code

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.