service database in Drupal 8
Same name and namespace in other branches
- 9 core/core.services.yml \database
- 10 core/core.services.yml \database
Class
Drupal\Core\Database\Connection70 string references to database
- AssignOwnerNode::create in core/
modules/ node/ src/ Plugin/ Action/ AssignOwnerNode.php - Creates an instance of the plugin.
- BackendCompilerPass::process in core/
lib/ Drupal/ Core/ DependencyInjection/ Compiler/ BackendCompilerPass.php - You can modify the container here before it is dumped to PHP code.
- 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.
- ChainedFastBackendTest::createCacheBackend in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ ChainedFastBackendTest.php - Creates a new instance of ChainedFastBackend.
File
- core/
core.services.yml - core/core.services.yml
View source
- class: Drupal\Core\Database\Connection
- factory: 'Drupal\Core\Database\Database::getConnection'
- arguments:
- - default