You are here

public static function AvatarPreviewInterface::getAvatarPreview in Avatar Kit 8

Queries for an avatar preview and loads it.

Parameters

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

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

Return value

\Drupal\avatars\AvatarPreviewInterface|false An avatar preview entity, or FALSE if it does not exist.

1 method overrides AvatarPreviewInterface::getAvatarPreview()
AvatarPreview::getAvatarPreview in src/Entity/AvatarPreview.php
Queries for an avatar preview and loads it.

File

src/AvatarPreviewInterface.php, line 167

Class

AvatarPreviewInterface
Provides an interface for the avatar preview entity.

Namespace

Drupal\avatars

Code

public static function getAvatarPreview(AvatarGeneratorInterface $avatar_generator, UserInterface $user);