function Connection::getConnectionOptions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::getConnectionOptions()
  2. 8.9.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::getConnectionOptions()
  3. 10 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/modules/pgsql/src/Driver/Database/pgsql/Connection.php
Connection::getFullQualifiedTableName in core/lib/Drupal/Core/Database/Connection.php
Get a fully qualified table name.

File

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

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.