function QueryFactory::get
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 QueryFactoryInterface::get
File
-
core/
lib/ Drupal/ Core/ Entity/ KeyValueStore/ Query/ QueryFactory.php, line 40
Class
- QueryFactory
- Provides a factory for creating the key value entity query.
Namespace
Drupal\Core\Entity\KeyValueStore\QueryCode
public function get(EntityTypeInterface $entity_type, $conjunction) {
return new Query($entity_type, $conjunction, $this->namespaces, $this->keyValueFactory);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.