protected function EntityStorageControllerBase::cacheSet

Stores entities in the static entity cache.

Parameters

$entities: Entities to store in the cache.

1 call to EntityStorageControllerBase::cacheSet()

File

drupal/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php, line 134
Contains \Drupal\Core\Entity\EntityStorageControllerBase.

Class

EntityStorageControllerBase
A base entity storage controller class.

Namespace

Drupal\Core\Entity

Code

protected function cacheSet($entities) {
  if ($this->cache) {
    $this->entityCache += $entities;
  }
}