You are here

protected function EntityAPIControllerExportable::cacheSet in Entity API 7

Overridden.

Overrides DrupalDefaultEntityController::cacheSet

See also

DrupalDefaultEntityController::cacheSet()

File

includes/entity.controller.inc, line 826
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 cacheSet($entities) {
  $this->entityCache += $entities;

  // If we have a name key, also support static caching when loading by name.
  if ($this->nameKey != $this->idKey) {
    $this->entityCacheByName += entity_key_array_by_property($entities, $this->nameKey);
  }
}