You are here

final public function EntityIdCache::removeIds in Apigee Edge 8

Removes ids from the cache.

Parameters

string[] $ids: Array of ids to be removed.

Overrides EntityIdCacheInterface::removeIds

File

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

Class

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

Namespace

Drupal\apigee_edge\Entity\Controller\Cache

Code

public final function removeIds(array $ids) : void {
  $this->ids = array_diff($this->ids, $ids);

  // If ids is empty now, reset the state. Cache can be marked as "complete"
  // still by calling the setter method if needed.
  if (empty($this->ids)) {
    $this->allIdsInCache = FALSE;
  }
  $this
    ->doRemoveIds($ids);
}