1 entity.controller.inc public EntityControllerInterface::load($ids = array(), $conditions = array())

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.:

File

core/modules/entity/entity.controller.inc, line 51
Entity API controller classes and interface.

Class

EntityControllerInterface
Defines a common interface for entity controller classes.

Code

public function load($ids = array(), $conditions = array());