Implements Drupal\Core\Entity\EntityStorageControllerInterface::loadByProperties().
Overrides EntityStorageControllerInterface::loadByProperties
public function loadByProperties(array $values = array()) {
$entities = $this
->load();
foreach ($values as $key => $value) {
$entities = array_filter($entities, function ($entity) use ($key, $value) {
return $value === $entity
->get($key);
});
}
return $entities;
}