W3cubDocs

/Drupal 8

public function EntityStorageInterface::loadByProperties

public EntityStorageInterface::loadByProperties(array $values = array())

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

\Drupal\Core\Entity\EntityInterface[] An array of entity objects indexed by their ids.

File

core/lib/Drupal/Core/Entity/EntityStorageInterface.php, line 105

Class

EntityStorageInterface
Defines the interface for entity storage classes.

Namespace

Drupal\Core\Entity

Code

public function loadByProperties(array $values = array());

© 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!EntityStorageInterface.php/function/EntityStorageInterface::loadByProperties/8.1.x