QueryFactory::$connection

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php \Drupal\Core\Entity\Query\Sql\QueryFactory::connection
  2. 8.9.x core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php \Drupal\Core\Entity\Query\Sql\QueryFactory::connection
  3. 10 core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php \Drupal\Core\Entity\Query\Sql\QueryFactory::connection

The database connection to use.

Type: \Drupal\Core\Database\Connection

File

core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php, line 23

Class

QueryFactory
Factory class creating entity query objects for the SQL backend.

Namespace

Drupal\Core\Entity\Query\Sql

Code

protected $connection;

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