public function AvatarGeneratorBase::getFile in Avatar Kit 8
Gets File object for an avatar.
Parameters
\Drupal\Core\Session\AccountInterface $account: A user account.
Return value
\Drupal\file\FileInterface A file object.
Overrides AvatarGeneratorPluginInterface::getFile
1 method overrides AvatarGeneratorBase::getFile()
- User::getFile in src/
Plugin/ AvatarGenerator/ User.php - Gets File object for an avatar.
File
- src/
Plugin/ AvatarGenerator/ AvatarGeneratorBase.php, line 98
Class
- AvatarGeneratorBase
- AvatarGenerator plugin base class.
Namespace
Drupal\avatars\Plugin\AvatarGeneratorCode
public function getFile(AccountInterface $account) {
return NULL;
}