function EntityStorageInterface::loadByProperties
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::loadByProperties()
- 8.9.x core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::loadByProperties()
- 11.x core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::loadByProperties()
Load entities by their property values without any access checks.
Parameters
array $values: 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.
Return value
\Drupal\Core\Entity\EntityInterface[] An array of entity objects indexed by their ids.
1 method overrides EntityStorageInterface::loadByProperties()
- EntityStorageBase::loadByProperties in core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php - Load entities by their property values without any access checks.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityStorageInterface.php, line 120
Class
- EntityStorageInterface
- Defines the interface for entity storage classes.
Namespace
Drupal\Core\EntityCode
public function loadByProperties(array $values = []);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.