You are here

public function SearchApiSortsTestEntityQueryFactory::get in Search API sorts 8

Instantiates an entity query for a given entity type.

Parameters

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

string $conjunction: The operator to use to combine conditions: 'AND' or 'OR'.

Return value

\Drupal\Core\Entity\Query\QueryInterface An entity query for a specific configuration entity type.

Overrides QueryFactory::get

File

tests/search_api_sorts_test_entity/src/Entity/SearchApiSortsTestEntityQueryFactory.php, line 18

Class

SearchApiSortsTestEntityQueryFactory
Class SearchApiSortsTestEntityQueryFactory.

Namespace

Drupal\search_api_sorts_test_entity\Entity

Code

public function get(EntityTypeInterface $entity_type, $conjunction) {
  return new SearchApiSortsTestEntityQuery($entity_type, $conjunction, $this->configFactory, $this->keyValueFactory, $this->namespaces);
}