protected function DatabaseStorageController::buildPropertyQuery

Builds an entity query.

Parameters

\Drupal\Core\Entity\Query\QueryInterface $entity_query: EntityQuery instance.

array $values: An associative array of properties of the entity, where the keys are the property names and the values are the values those properties must have.

3 calls to DatabaseStorageController::buildPropertyQuery()
2 methods override DatabaseStorageController::buildPropertyQuery()

File

drupal/core/lib/Drupal/Core/Entity/DatabaseStorageController.php, line 285
Definition of Drupal\Core\Entity\DatabaseStorageController.

Class

DatabaseStorageController
Defines a base entity controller class.

Namespace

Drupal\Core\Entity

Code

protected function buildPropertyQuery(QueryInterface $entity_query, array $values) {
  foreach ($values as $name => $value) {
    $entity_query
      ->condition($name, $value);
  }
}