protected function EntityAPIControllerExportable::cacheGet in Entity API 7
Overridden.
Overrides DrupalDefaultEntityController::cacheGet
See also
DrupalDefaultEntityController::cacheGet()
File
- includes/
entity.controller.inc, line 778 - Provides a controller building upon the core controller but providing more features like full CRUD functionality.
Class
- EntityAPIControllerExportable
- A controller implementing exportables stored in the database.
Code
protected function cacheGet($ids, $conditions = array()) {
if (!empty($this->entityCache) && $ids !== array()) {
$entities = $ids ? array_intersect_key($this->entityCache, array_flip($ids)) : $this->entityCache;
return $this
->applyConditions($entities, $conditions);
}
return array();
}