You are here

function Query::__construct in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::__construct()
  2. 8 core/lib/Drupal/Core/Config/Entity/Query/Query.php \Drupal\Core\Config\Entity\Query\Query::__construct()
  3. 8 core/lib/Drupal/Core/Entity/KeyValueStore/Query/Query.php \Drupal\Core\Entity\KeyValueStore\Query\Query::__construct()
  4. 8 core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\Query::__construct()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/Entity/Query/Query.php \Drupal\Core\Config\Entity\Query\Query::__construct()

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\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key value factory.

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

Overrides QueryBase::__construct

File

core/lib/Drupal/Core/Config/Entity/Query/Query.php, line 57
Contains \Drupal\Core\Config\Entity\Query\Query.

Class

Query
Defines the entity query for configuration entities.

Namespace

Drupal\Core\Config\Entity\Query

Code

function __construct(EntityTypeInterface $entity_type, $conjunction, ConfigFactoryInterface $config_factory, KeyValueFactoryInterface $key_value_factory, array $namespaces) {
  parent::__construct($entity_type, $conjunction, $namespaces);
  $this->configFactory = $config_factory;
  $this->keyValueFactory = $key_value_factory;
}