You are here

public function Connection::getConnectionOptions in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::getConnectionOptions()

Returns the connection information for this connection object.

Note that Database::getConnectionInfo() is for requesting information about an arbitrary database connection that is defined. This method is for requesting the connection information of this specific open connection object.

Return value

array An array of the connection information. The exact list of properties is driver-dependent.

2 calls to Connection::getConnectionOptions()
Connection::getFullQualifiedTableName in core/lib/Drupal/Core/Database/Connection.php
Get a fully qualified table name.
Connection::getFullQualifiedTableName in core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
Get a fully qualified table name.

File

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

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function getConnectionOptions() {
  return $this->connectionOptions;
}