function DrupalEntityControllerInterface::load
Loads one or more entities.
Parameters
$ids: An array of entity IDs, or FALSE to load all entities.
$conditions: An array of conditions. Keys are field names on the entity's base table. Values will be compared for equality. All the comparisons will be ANDed together. This parameter is deprecated; use an EntityFieldQuery instead.
Return value
An array of entity objects indexed by their ids. When no results are found, an empty array is returned.
1 method overrides DrupalEntityControllerInterface::load()
- DrupalDefaultEntityController::load in includes/
entity.inc - Implements DrupalEntityControllerInterface::load().
File
-
includes/
entity.inc, line 39
Class
- DrupalEntityControllerInterface
- Interface for entity controller classes.
Code
public function load($ids = array(), $conditions = array());
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.