public function AvatarKitLocalCache::invalidateCaches in Avatar Kit 8.2
Determines if caches for an entity need to be invalidated.
Used when an entity is modified.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to invalidate.
Overrides AvatarKitLocalCacheInterface::invalidateCaches
File
- src/
AvatarKitLocalCache.php, line 170
Class
- AvatarKitLocalCache
- Cache remote files locally into file entities.
Namespace
Drupal\avatarsCode
public function invalidateCaches(EntityInterface $entity) : void {
// Get all caches in storage, don't need to worry about preferences or
// progressively loading each service.
// @todo
}