final public function EntityIdCache::saveEntities in Apigee Edge 8
Adds entities to the cache.
Parameters
\Apigee\Edge\Entity\EntityInterface[] $entities: Array of entities.
Overrides EntityIdCacheInterface::saveEntities
File
- src/
Entity/ Controller/ Cache/ EntityIdCache.php, line 72
Class
- EntityIdCache
- Base definition of the entity id cache service used by controllers.
Namespace
Drupal\apigee_edge\Entity\Controller\CacheCode
public final function saveEntities(array $entities) : void {
$ids = array_map(function (EntityInterface $entity) {
return $this
->getEntityId($entity);
}, $entities);
$this
->saveIds($ids);
}