Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Connection.php

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 243

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function getClientConnection() : object {
    return $this->connection;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal