database
Same name and namespace in other branches
- 9 core/core.services.yml \database
- 8.9.x core/core.services.yml \database
- 11.x core/core.services.yml \database
Class
Drupal\Core\Database\Connection61 string references to database
- AssignOwnerNode::create in core/
modules/ action/ src/ Plugin/ Action/ AssignOwnerNode.php - Creates an instance of the plugin.
- BackendCompilerPass::process in core/
lib/ Drupal/ Core/ DependencyInjection/ Compiler/ BackendCompilerPass.php - phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
- BackendCompilerPassTest::getDrivertestMysqlContainer in core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Compiler/ BackendCompilerPassTest.php - Creates a container with a DrivertestMysql database mock definition in it.
- BackendCompilerPassTest::getSqliteContainer in core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Compiler/ BackendCompilerPassTest.php - Creates a container with a sqlite database service in it.
- CacheCollectorTest::register in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ CacheCollectorTest.php - Registers test-specific services.
File
-
core/
core.services.yml
View source
- class: Drupal\Core\Database\Connection
- factory: 'Drupal\Core\Database\Database::getConnection'
- arguments:
- - default
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.