You are here

public function AvatarManagerInterface::refreshAvatarGenerator in Avatar Kit 8

Create avatar if it does not exist.

Parameters

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

\Drupal\avatars\AvatarGeneratorInterface $avatar_generator: An avatar generator instance.

int $scope: Caching scope level.

Return value

\Drupal\avatars\AvatarPreviewInterface|false An avatar preview entity.

1 method overrides AvatarManagerInterface::refreshAvatarGenerator()
AvatarManager::refreshAvatarGenerator in src/AvatarManager.php
Create avatar if it does not exist.

File

src/AvatarManagerInterface.php, line 47

Class

AvatarManagerInterface
Provides an interface to the avatar manager service.

Namespace

Drupal\avatars

Code

public function refreshAvatarGenerator(UserInterface $user, AvatarGeneratorInterface $avatar_generator, $scope);