$entities[$id] =
$this->
load($id);
} else { // As the entities are put into the persistent cache before the post load
// has been executed we have to execute it if we have retrieved the
// entity directly from the persistent cache.
$this->
postLoad($entities);
// As we've removed the entity from the static cache already we have to
// put the loaded unchanged entity there to simulate the behavior of the
// parent.
$this->
setStaticCache($entities);
} return $entities[$id];
} /**
* Resets the entity cache.
*
* Content entities have both an in-memory static cache and a persistent
* cache. Use this method to clear all caches. To clear just the in-memory
* cache, use the 'entity.memory_cache' service.
*
* @param array $ids
* (optional) If specified, the cache is reset for the entities with the
* given ids only.
*/