service database

Class

Drupal\Core\Database\Connection
14 string references to database
AggregatorController::create in drupal/core/modules/aggregator/lib/Drupal/aggregator/Controller/AggregatorController.php
{inheritdoc}
AssignOwnerNode::create in drupal/core/modules/node/lib/Drupal/node/Plugin/Action/AssignOwnerNode.php
Creates an instance of the plugin.
DatabaseBackendUnitTest::createCacheBackend in drupal/core/modules/system/lib/Drupal/system/Tests/Cache/DatabaseBackendUnitTest.php
Creates a new instance of DatabaseBackend.
DatabaseStorageController::createInstance in drupal/core/lib/Drupal/Core/Entity/DatabaseStorageController.php
Instantiates a new instance of this entity controller.
DatabaseStorageExpirableTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/KeyValueStore/DatabaseStorageExpirableTest.php
Sets up unit test environment.

... See full list

File

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

View source
  1. class: Drupal\Core\Database\Connection
  2. factory_class: Drupal\Core\Database\Database
  3. factory_method: getConnection
  4. arguments:
  5. - default