You are here

protected function EdgeEntityStorageBase::doLoadMultiple in Apigee Edge 8

Performs storage-specific loading of entities.

Override this method to add custom functionality directly after loading. This is always called, while self::postLoad() is only called when there are actual results.

Parameters

array|null $ids: (optional) An array of entity IDs, or NULL to load all entities.

Return value

\Drupal\Core\Entity\EntityInterface[] Associative array of entities, keyed on the entity ID.

Overrides EntityStorageBase::doLoadMultiple

File

src/Entity/Storage/EdgeEntityStorageBase.php, line 110

Class

EdgeEntityStorageBase
Base entity storage class for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Storage

Code

protected function doLoadMultiple(array $ids = NULL) {

  // Attempt to load entities from the persistent cache. This will remove IDs
  // that were loaded from $ids.
  $entities_from_cache = $this
    ->getFromPersistentCache($ids);
  return $entities_from_cache + $this
    ->getFromStorage($ids);
}