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\Sql

Code

public function __construct(Connection $connection) {
  $this->connection = $connection;
  $this->namespaces = QueryBase::getNamespaces($this);
}
doc_Drupal
2016-10-29 09:35:55
Comments
Leave a Comment

Please login to continue.