public function AvatarKitEntityField::createIdentifier in Avatar Kit 8.2
Overrides AvatarKitServiceBase::createIdentifier
File
- src/
Plugin/ Avatars/ Service/ AvatarKitEntityField.php, line 157
Class
- AvatarKitEntityField
- Gets avatar from a field in the same entity.
Namespace
Drupal\avatars\Plugin\Avatars\ServiceCode
public function createIdentifier() : AvatarIdentifierInterface {
return (new AvatarIdentifier())
->setHasher(function ($string) {
return $string;
});
}