public function QueryFactory::__construct
public QueryFactory::__construct(Connection$connection)
Constructs a QueryFactory object.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection used by the entity query.
File
- core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php, line 38
Class
- QueryFactory
- Factory class creating entity query objects for the SQL backend.
Namespace
Drupal\Core\Entity\Query\SqlCode
public function __construct(Connection $connection) { $this->connection = $connection; $this->namespaces = QueryBase::getNamespaces($this); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!Sql!QueryFactory.php/function/QueryFactory::__construct/8.1.x