public function AvatarKitEntityHooks::update in Avatar Kit 8.2
Implements hook_entity_update().
Overrides AvatarKitEntityHooksInterface::update
See also
File
- src/
AvatarKitEntityHooks.php, line 24
Class
- AvatarKitEntityHooks
- Drupal entity hooks.
Namespace
Drupal\avatarsCode
public function update(EntityInterface $entity) : void {
/** @var \Drupal\avatars\AvatarKitLocalCacheInterface $localCache */
$localCache = \Drupal::service('avatars.local_cache');
$localCache
->invalidateCaches($entity);
}