public function AvatarPreview::getAvatar in Avatar Kit 8
Get associated avatar file.
Return value
\Drupal\file\FileInterface|null A file entity.
Overrides AvatarPreviewInterface::getAvatar
1 call to AvatarPreview::getAvatar()
- AvatarPreview::postSave in src/
Entity/ AvatarPreview.php - Acts on a saved entity before the insert or update hook is invoked.
File
- src/
Entity/ AvatarPreview.php, line 61
Class
- AvatarPreview
- Defines the avatar preview entity.
Namespace
Drupal\avatars\EntityCode
public function getAvatar() {
return $this
->get('avatar')->entity;
}