You are here

service database in Drupal 9

Same name and namespace in other branches
  1. 8 core/core.services.yml \database

Class

Drupal\Core\Database\Connection
64 string references to database
ArgumentNodeRevisionIdTest::testVidDeprecatedParameter in core/modules/node/tests/src/Kernel/Views/ArgumentNodeRevisionIdTest.php
Tests the Vid argument deprecation.
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
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.

... See full list

File

core/core.services.yml
core/core.services.yml

View source
  1. class: Drupal\Core\Database\Connection
  2. factory: 'Drupal\Core\Database\Database::getConnection'
  3. arguments:
  4. - default