public static function AvatarBase::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 AvatarBaseInterface::hashIdentifier
2 calls to AvatarBase::hashIdentifier()
- Adorable::getUrl in avatars_adorable/
src/ Adorable.php - Gets the URL for the avatar.
- Robohash::getUrl in avatars_robohash/
src/ Robohash.php - Gets the URL for the avatar.
1 method overrides AvatarBase::hashIdentifier()
- Gravatar::hashIdentifier in avatars_gravatar/
src/ Gravatar.php - Prepare an identifier for transmission to a third party.
File
- src/
AvatarBase.php, line 207
Class
- AvatarBase
- Abstract class for Avatar APIs.
Namespace
Drupal\avatarsCode
public static function hashIdentifier($identifier) {
return md5($identifier);
}