Load entities by their property values.
Parameters
array $values:
An associative array where the keys are the property names and the
values are the values those properties must have.
Return value
array
An array of entity objects indexed by their ids.
File
- drupal/core/lib/Drupal/Core/Entity/EntityStorageControllerInterface.php, line 74
- Definition of Drupal\Core\Entity\EntityStorageControllerInterface.
Class
- EntityStorageControllerInterface
- Defines a common interface for entity controller classes.
Namespace
Drupal\Core\Entity
Code
public function loadByProperties(array $values = array());