protected EntityStorageBase::buildPropertyQuery(QueryInterface $entity_query, array $values)
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) { // Cast scalars to array so we can consistently use an IN condition. $entity_query->condition($name, (array) $value, 'IN'); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityStorageBase.php/function/EntityStorageBase::buildPropertyQuery/8.1.x