You are here

public function AvatarManagerInterface::getAvatarPreviewByFile in Avatar Kit 8

Determines if a file entity is an avatar preview.

Parameters

\Drupal\file\FileInterface $file: The file entity to check.

Return value

int|false Returns the avatar preview entity ID, or FALSE if the file is not a avatar preview.

1 method overrides AvatarManagerInterface::getAvatarPreviewByFile()
AvatarManager::getAvatarPreviewByFile in src/AvatarManager.php
Determines if a file entity is an avatar preview.

File

src/AvatarManagerInterface.php, line 134

Class

AvatarManagerInterface
Provides an interface to the avatar manager service.

Namespace

Drupal\avatars

Code

public function getAvatarPreviewByFile(FileInterface $file);