Builds an entity query.
\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.
protected function buildPropertyQuery(QueryInterface $entity_query, array $values) {
foreach ($values as $name => $value) {
$entity_query
->condition($name, $value);
}
}