public function Query::__construct

Same name in this branch

Parameters

string $entity_type: The entity type.

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.

Overrides QueryBase::__construct

File

drupal/core/modules/field/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Query.php, line 32
Definition of Drupal\field_sql_storage\Entity\Query.

Class

Query
The SQL storage entity query class.

Namespace

Drupal\field_sql_storage\Entity

Code

public function __construct($entity_type, $conjunction, $connection) {
  parent::__construct($entity_type, $conjunction);
  $this->connection = $connection;
}