final public function EntityCache::getEntities in Apigee Edge 8
Returns entities from the cache.
Parameters
array $ids: Array of entity ids. If an empty array is passed all currently stored gets returned.
Return value
\Apigee\Edge\Entity\EntityInterface[] Array of entities.
Overrides EntityCacheInterface::getEntities
2 calls to EntityCache::getEntities()
- AppCache::getAppsByOwner in src/
Entity/ Controller/ Cache/ AppCache.php - Returns an app from the cache by its owner.
- EntityCache::getEntity in src/
Entity/ Controller/ Cache/ EntityCache.php - Returns an entity from the cache by its id.
File
- src/
Entity/ Controller/ Cache/ EntityCache.php, line 138
Class
- EntityCache
- Default entity cache implementation for controllers.
Namespace
Drupal\apigee_edge\Entity\Controller\CacheCode
public final function getEntities(array $ids = []) : array {
if (empty($ids)) {
$ids = $this->cacheIds;
}
return array_map(function ($item) {
return $item->data;
}, $this->cacheBackend
->getMultiple($ids));
}