Search for getConnection

  1. Search 7.x for getConnection
  2. Search 9.5.x for getConnection
  3. Search 8.9.x for getConnection
  4. Search 11.x for getConnection
  5. Other projects
Title Object type File name Summary
Connection::getConnectionOptions function core/lib/Drupal/Core/Database/Connection.php Returns the connection information for this connection object.
Database::getConnection function core/lib/Drupal/Core/Database/Database.php Gets the connection object for the specified database key and target.
Database::getConnectionInfo function core/lib/Drupal/Core/Database/Database.php Gets information on the specified database connection.
Database::getConnectionInfoAsUrl function core/lib/Drupal/Core/Database/Database.php Gets database connection info as a URL.
DriverSpecificConnectionUnitTestBase::getConnectionId function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificConnectionUnitTestBase.php Returns the connection ID of the current test connection.
MigrationConfigurationTrait::getConnection function core/modules/migrate_drupal/src/MigrationConfigurationTrait.php Gets the database connection for the source Drupal database.
Query::getConnection function core/lib/Drupal/Core/Database/Query/Query.php Gets the database connection to be used for the query.
SimpletestTestRunResultsStorage::getConnection function core/lib/Drupal/Core/Test/SimpletestTestRunResultsStorage.php Returns the database connection to use for inserting assertions.
Sql::getConnection function core/modules/views/src/Plugin/views/query/Sql.php Gets the database connection to use for the view.
SqlQueryTest::testGetConnection function core/modules/views/tests/src/Kernel/Plugin/SqlQueryTest.php Tests the method \Drupal\views\Plugin\views\query\Sql::getConnection().
StatementInterface::getConnectionTarget function core/lib/Drupal/Core/Database/StatementInterface.php Returns the target connection this statement is associated with.
StatementPrefetch::getConnectionTarget function core/lib/Drupal/Core/Database/StatementPrefetch.php
StatementPrefetchIterator::getConnectionTarget function core/lib/Drupal/Core/Database/StatementPrefetchIterator.php
StatementWrapper::getConnectionTarget function core/lib/Drupal/Core/Database/StatementWrapper.php
StatementWrapperIterator::getConnectionTarget function core/lib/Drupal/Core/Database/StatementWrapperIterator.php
Tasks::getConnection function core/lib/Drupal/Core/Database/Install/Tasks.php Returns the database connection.
TemporaryQueryTestBase::getConnection function core/tests/Drupal/KernelTests/Core/Database/TemporaryQueryTestBase.php Returns the connection.
TransactionManagerBase::getConnectionTransactionState function core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php Gets the state of the client connection transaction.
UrlConversionTest::providerGetConnectionInfoAsUrl function core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php Data provider for testGetConnectionInfoAsUrl().
UrlConversionTest::providerInvalidArgumentGetConnectionInfoAsUrl function core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php Data provider for testGetInvalidArgumentGetConnectionInfoAsUrl().
UrlConversionTest::testGetConnectionInfoAsUrl function core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php @covers ::getConnectionInfoAsUrl
UrlConversionTest::testGetInvalidArgumentGetConnectionInfoAsUrl function core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php Tests ::getConnectionInfoAsUrl() exception for invalid arguments.

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