public static function Gravatar::hashIdentifier in Avatar Kit 8
Prepare an identifier for transmission to a third party.
Parameters
string $identifier: An identifier to obfuscate.
Return value
string The obfuscated identifier.
Overrides AvatarBase::hashIdentifier
1 call to Gravatar::hashIdentifier()
- Gravatar::getUrl in avatars_gravatar/
src/ Gravatar.php - Gets the URL for the avatar.
File
- avatars_gravatar/
src/ Gravatar.php, line 180
Class
- Gravatar
- Implements the Gravatar.com API.
Namespace
Drupal\avatars_gravatarCode
public static function hashIdentifier($identifier) {
// Gravatar expects a md5 hash, and must have a length <= 32.
// Override in case base class changes.
return md5($identifier);
}