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\avatarsCode
public function getAvatarPreviewByFile(FileInterface $file);