diff --git a/core/lib/Drupal/Core/Entity/EntityStorageBase.php b/core/lib/Drupal/Core/Entity/EntityStorageBase.php index 85d7ef4359a0d6b1682514cffef0067c3ec03015..2abbdcd31c3c9689c7cb2c6d63da6ce13cc62338 100644 --- a/core/lib/Drupal/Core/Entity/EntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageBase.php @@ -585,8 +585,9 @@ public function restore(EntityInterface $entity) { * @param \Drupal\Core\Entity\Query\QueryInterface $entity_query * EntityQuery instance. * @param 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. + * An associative array where the keys are the property names and the + * values are the values those properties must have. If a property takes + * multiple values, passing an array of values will produce an IN condition. */ protected function buildPropertyQuery(QueryInterface $entity_query, array $values) { foreach ($values as $name => $value) { diff --git a/core/lib/Drupal/Core/Entity/EntityStorageInterface.php b/core/lib/Drupal/Core/Entity/EntityStorageInterface.php index 4397cf458110797fe79b7506bde9b58977591e5e..44a07910dce639c423633ddcb54d298441e04523 100644 --- a/core/lib/Drupal/Core/Entity/EntityStorageInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageInterface.php @@ -111,7 +111,8 @@ public function deleteRevision($revision_id); * * @param array $values * An associative array where the keys are the property names and the - * values are the values those properties must have. + * values are the values those properties must have. If a property takes + * multiple values, passing an array of values will produce an IN condition. * * @return \Drupal\Core\Entity\EntityInterface[] * An array of entity objects indexed by their ids.