You are here

public function AvatarManagerInterface::getAvatarFile in Avatar Kit 8

Download avatar and insert it into a file.

Ignores any existing caches. Use refreshAvatarGenerator to take advantage of internal caching.

Parameters

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

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

Return value

\Drupal\file\FileInterface|false The file containing an avatar.

1 method overrides AvatarManagerInterface::getAvatarFile()
AvatarManager::getAvatarFile in src/AvatarManager.php
Download avatar and insert it into a file.

File

src/AvatarManagerInterface.php, line 74

Class

AvatarManagerInterface
Provides an interface to the avatar manager service.

Namespace

Drupal\avatars

Code

public function getAvatarFile(AvatarGeneratorInterface $avatar_generator, UserInterface $user);