You are here

final public function EntityIdCache::saveIds in Apigee Edge 8

Adds entity ids to the cache.

Parameters

string[] $ids: Array of entity ids to add.

Overrides EntityIdCacheInterface::saveIds

1 call to EntityIdCache::saveIds()
EntityIdCache::saveEntities in src/Entity/Controller/Cache/EntityIdCache.php
Adds entities to the cache.

File

src/Entity/Controller/Cache/EntityIdCache.php, line 55

Class

EntityIdCache
Base definition of the entity id cache service used by controllers.

Namespace

Drupal\apigee_edge\Entity\Controller\Cache

Code

public final function saveIds(array $ids) : void {

  // Store entity ids in an associative array because it is easier to work
  // with them.
  $this->ids += array_combine($ids, $ids);
}