You are here

public static function Connection::open in Drupal 9

Same name in this branch
  1. 9 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::open()
  2. 9 core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php \Drupal\Core\Database\Driver\sqlite\Connection::open()
  3. 9 core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php \Drupal\Core\Database\Driver\pgsql\Connection::open()
  4. 9 core/lib/Drupal/Core/Database/Driver/mysql/Connection.php \Drupal\Core\Database\Driver\mysql\Connection::open()
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::open()

Opens a PDO connection.

Parameters

array $connection_options: The database connection settings array.

Return value

\PDO A \PDO object.

3 methods override Connection::open()
Connection::open in core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
Opens a PDO connection.
Connection::open in core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
Opens a PDO connection.
Connection::open in core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
Opens a PDO connection.

File

core/lib/Drupal/Core/Database/Connection.php, line 314

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public static function open(array &$connection_options = []) {
}