Search for getConnection

  1. Search 7.x for getConnection
  2. Search 9.5.x for getConnection
  3. Search 10.3.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.
ConnectionUnitTest::getConnectionId function core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php Returns the connection ID of the current test connection.
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.
MigrationConfigurationTrait::getConnection function core/modules/migrate_drupal/src/MigrationConfigurationTrait.php Gets the database connection for the source Drupal database.
TestDatabase::getConnection function core/lib/Drupal/Core/Test/TestDatabase.php Returns the database connection to the site running Simpletest.
UrlConversionTest::providerGetConnectionInfoAsUrl function core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php Dataprovider for testGetConnectionInfoAsUrl().
UrlConversionTest::providerInvalidArgumentGetConnectionInfoAsUrl function core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php Dataprovider 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 Test ::getConnectionInfoAsUrl() exception for invalid arguments.

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