Connection::getConnectionOptions

public 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.

File

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

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function getConnectionOptions() {
  return $this->connectionOptions;
}
doc_Drupal
2016-10-29 08:55:49
Comments
Leave a Comment

Please login to continue.