Query::__construct

public Query::__construct(EntityTypeInterface $entity_type, $conjunction, Connection $connection, array $namespaces)

Constructs a query object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

string $conjunction:

  • AND: all of the conditions on the query need to match.
  • OR: at least one of the conditions on the query need to match.

\Drupal\Core\Database\Connection $connection: The database connection to run the query against.

array $namespaces: List of potential namespaces of the classes belonging to this query.

Overrides QueryBase::__construct

File

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

Class

Query
The SQL storage entity query class.

Namespace

Drupal\Core\Entity\Query\Sql

Code

public function __construct(EntityTypeInterface $entity_type, $conjunction, Connection $connection, array $namespaces) {
  parent::__construct($entity_type, $conjunction, $namespaces);
  $this->connection = $connection;
}
doc_Drupal
2016-10-29 09:35:27
Comments
Leave a Comment

Please login to continue.