You are here

public function AvatarManagerInterface::invalidateUserAvatar in Avatar Kit 8

Invalidate any cache where the user avatar is displayed.

Call if the avatar has changed, or is expected to change.

Parameters

\Drupal\user\UserInterface $user: A user entity.

1 method overrides AvatarManagerInterface::invalidateUserAvatar()
AvatarManager::invalidateUserAvatar in src/AvatarManager.php
Invalidate any cache where the user avatar is displayed.

File

src/AvatarManagerInterface.php, line 99

Class

AvatarManagerInterface
Provides an interface to the avatar manager service.

Namespace

Drupal\avatars

Code

public function invalidateUserAvatar(UserInterface $user);