public function AppCacheByOwner::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 AppCacheByOwner::getEntities()
- AppCacheByOwner::getEntity in src/
Entity/ Controller/ Cache/ AppCacheByOwner.php - Returns an entity from the cache by its id.
- AppCacheByOwner::removeEntities in src/
Entity/ Controller/ Cache/ AppCacheByOwner.php - Removes entities from the cache by their ids.
File
- src/
Entity/ Controller/ Cache/ AppCacheByOwner.php, line 113
Class
- AppCacheByOwner
- Default cache store for apps of a specific owner.
Namespace
Drupal\apigee_edge\Entity\Controller\CacheCode
public function getEntities(array $ids = []) : array {
// If $ids is empty all entities should be returned.
if (empty($ids)) {
$apps = $this->appCache
->getAppsByOwner($this->owner);
return $apps ?? [];
}
return $this
->getAppsByAppNames($ids);
}