You are here

protected function EdgeEntityStorageBase::resetControllerCache in Apigee Edge 8

Resets entity controller's cache if it is a cached entity controller.

Parameters

string[] $ids: Array of entity ids.

1 call to EdgeEntityStorageBase::resetControllerCache()
EdgeEntityStorageBase::loadUnchanged in src/Entity/Storage/EdgeEntityStorageBase.php
Loads an unchanged entity from the database.

File

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

Class

EdgeEntityStorageBase
Base entity storage class for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Storage

Code

protected function resetControllerCache(array $ids) {
  $controller = $this
    ->entityController();
  if ($controller instanceof EntityCacheAwareControllerInterface) {
    $controller
      ->entityCache()
      ->removeEntities($ids);
  }
}