Search for getDatabase

  1. Search 7.x for getDatabase
  2. Search 9.5.x for getDatabase
  3. Search 8.9.x for getDatabase
  4. Search 10.3.x for getDatabase
  5. Other projects
Title Object type File name Summary
BootstrapConfigStorageFactory::getDatabaseStorage function core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php Returns a Database configuration storage implementation.
CacheTagsChecksumTrait::getDatabaseConnection function core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php Returns the database connection.
CredentialForm::getDatabaseTypes function core/modules/migrate_drupal_ui/src/Form/CredentialForm.php Returns all supported database driver installer objects.
DatabaseCacheTagsChecksum::getDatabaseConnection function core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php Returns the database connection.
DbCommandBase::getDatabaseConnection function core/lib/Drupal/Core/Command/DbCommandBase.php Parse input options decide on a database.
DbCommandBaseTester::getDatabaseConnection function core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
FunctionalTestSetupTrait::getDatabaseTypes function core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Returns all supported database driver installer objects.
KernelTestBase::getDatabaseConnectionInfo function core/tests/Drupal/KernelTests/KernelTestBase.php Returns the Database connection info to be used for this test.
KernelTestBase::getDatabasePrefix function core/tests/Drupal/KernelTests/KernelTestBase.php
KernelTestBaseDatabaseDriverModuleTest::getDatabaseConnectionInfo function core/tests/Drupal/KernelTests/KernelTestBaseDatabaseDriverModuleTest.php Returns the Database connection info to be used for this test.
KernelTestBaseTest::testGetDatabaseConnectionInfoWithOutManualSetDbUrl function core/tests/Drupal/KernelTests/KernelTestBaseTest.php @covers ::getDatabaseConnectionInfo
MigrateSqlSourceTestBase::getDatabase function core/modules/migrate/tests/src/Kernel/MigrateSqlSourceTestBase.php Builds an in-memory SQLite database from a set of source data.
MigrateTestCase::getDatabase function core/modules/migrate/tests/src/Unit/MigrateTestCase.php Gets an SQLite database connection object for use in tests.
QueryBatchTest::getDatabase function core/modules/migrate/tests/src/Kernel/QueryBatchTest.php Builds an in-memory SQLite database from a set of source data.
SiteSettingsForm::getDatabaseErrors function core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php Get any database errors and links them to a form element.
SiteSettingsForm::getDatabaseErrorsTemplate function core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php Gets the inline template render array to display the database errors.
Sql::getDatabase function core/modules/migrate/src/Plugin/migrate/id_map/Sql.php Gets the database connection.
SqlBase::getDatabase function core/modules/migrate/src/Plugin/migrate/source/SqlBase.php Gets the database connection object.
SqlModeTest::getDatabaseConnectionInfo function core/modules/mysql/tests/src/Kernel/mysql/SqlModeTest.php
TestDatabase::getDatabasePrefix function core/lib/Drupal/Core/Test/TestDatabase.php Gets the test database prefix.
TestRun::getDatabasePrefix function core/lib/Drupal/Core/Test/TestRun.php Gets the test database prefix.
TestService::getDatabase function core/modules/system/tests/modules/autowire_test/src/TestService.php
TestSetupTraitTest::testGetDatabaseConnection function core/tests/Drupal/KernelTests/Core/Test/TestSetupTraitTest.php @covers ::getDatabaseConnection
@group legacy
TestSqlBase::getDatabase function core/modules/migrate/tests/src/Unit/SqlBaseTest.php
TestSqlBase::getDatabase function core/modules/migrate/tests/src/Kernel/SqlBaseTest.php Gets the database without caching it.
TestSqlIdMap::getDatabase function core/modules/migrate/tests/src/Unit/TestSqlIdMap.php

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