public function AvatarKitLocalCacheInterface::cacheRemote in Avatar Kit 8.2
Download and save the file to an avatar cache entity.
Parameters
string $service_id: An avatar service ID.
string $uri: The URL of an avatar to download.
\Drupal\avatars\EntityAvatarIdentifierInterface $identifier: An entity avatar identifier.
Return value
\Drupal\avatars\Entity\AvatarCacheInterface|null An avatar cache entity, or NULL if the avatar failed to download.
1 method overrides AvatarKitLocalCacheInterface::cacheRemote()
- AvatarKitLocalCache::cacheRemote in src/
AvatarKitLocalCache.php - Download and save the file to an avatar cache entity.
File
- src/
AvatarKitLocalCacheInterface.php, line 55
Class
- AvatarKitLocalCacheInterface
- Cache remote files locally into file entities.
Namespace
Drupal\avatarsCode
public function cacheRemote(string $service_id, string $uri, EntityAvatarIdentifierInterface $identifier) : ?AvatarCacheInterface;