You are here

public function AvatarKitEntityHooks::update in Avatar Kit 8.2

Implements hook_entity_update().

Overrides AvatarKitEntityHooksInterface::update

See also

hook_entity_update()

File

src/AvatarKitEntityHooks.php, line 24

Class

AvatarKitEntityHooks
Drupal entity hooks.

Namespace

Drupal\avatars

Code

public function update(EntityInterface $entity) : void {

  /** @var \Drupal\avatars\AvatarKitLocalCacheInterface $localCache */
  $localCache = \Drupal::service('avatars.local_cache');
  $localCache
    ->invalidateCaches($entity);
}