You are here

interface QueryFactoryInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Query/QueryFactoryInterface.php \Drupal\Core\Entity\Query\QueryFactoryInterface

Defines an interface for QueryFactory classes.

Hierarchy

Expanded class hierarchy of QueryFactoryInterface

All classes that implement QueryFactoryInterface

6 files declare their use of QueryFactoryInterface
MigrationStorage.php in core/modules/migrate/src/MigrationStorage.php
Contains \Drupal\migrate\MigrationStorage.
MigrationStorageTest.php in core/modules/migrate/tests/src/Unit/MigrationStorageTest.php
Contains \Drupal\Tests\migrate\Unit\MigrationStorageTest.
QueryFactory.php in core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php
Contains \Drupal\Core\Config\Entity\Query\QueryFactory.
QueryFactory.php in core/lib/Drupal/Core/Entity/KeyValueStore/Query/QueryFactory.php
Contains \Drupal\Core\Entity\KeyValueStore\Query\QueryFactory.
QueryFactory.php in core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php
Contains \Drupal\Core\Entity\Query\Sql\QueryFactory.

... See full list

File

core/lib/Drupal/Core/Entity/Query/QueryFactoryInterface.php, line 14
Contains \Drupal\Core\Entity\Query\QueryFactoryInterface.

Namespace

Drupal\Core\Entity\Query
View source
interface QueryFactoryInterface {

  /**
   * Instantiates an entity query for a given entity type.
   *
   * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
   *   The entity type definition.
   * @param string $conjunction
   *   The operator to use to combine conditions: 'AND' or 'OR'.
   *
   * @return \Drupal\Core\Entity\Query\QueryInterface
   *   An entity query for a specific configuration entity type.
   */
  public function get(EntityTypeInterface $entity_type, $conjunction);

  /**
   * Instantiates an aggregation query object for a given entity type.
   *
   * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
   *   The entity type definition.
   * @param 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.
   *
   * @return \Drupal\Core\Entity\Query\QueryAggregateInterface
   *   The query object that can query the given entity type.
   *
   * @throws \Drupal\Core\Entity\Query\QueryException
   */
  public function getAggregate(EntityTypeInterface $entity_type, $conjunction);

}

Members

Namesort descending Modifiers Type Description Overrides
QueryFactoryInterface::get public function Instantiates an entity query for a given entity type. 4
QueryFactoryInterface::getAggregate public function Instantiates an aggregation query object for a given entity type. 4