public function UserPreference::generateUri in Avatar Kit 8
Creates a URI to an avatar.
Parameters
\Drupal\Core\Session\AccountInterface $account: A user account.
Return value
string URI to an image file.
Overrides AvatarGeneratorBase::generateUri
File
- src/
Plugin/ AvatarGenerator/ UserPreference.php, line 26
Class
- UserPreference
- User preference plugin.
Namespace
Drupal\avatars\Plugin\AvatarGeneratorCode
public function generateUri(AccountInterface $account) {
// This is a special plugin. This method should never be called.
throw new \Exception(__FUNCTION__ . ' called for user_preference plugin.');
}