public function AvatarKitLocalCacheInterface::cacheEmpty in Avatar Kit 8.2
Creates an empty avatar cache entity.
Used if a valid cache entity could not be created.
Parameters
string $service_id: An avatar service ID.
string|null $uri: The URL of an avatar.
\Drupal\avatars\EntityAvatarIdentifierInterface $identifier: An entity avatar identifier.
Return value
\Drupal\avatars\Entity\AvatarCacheInterface An avatar cache entity.
1 method overrides AvatarKitLocalCacheInterface::cacheEmpty()
- AvatarKitLocalCache::cacheEmpty in src/
AvatarKitLocalCache.php - Creates an empty avatar cache entity.
File
- src/
AvatarKitLocalCacheInterface.php, line 72
Class
- AvatarKitLocalCacheInterface
- Cache remote files locally into file entities.
Namespace
Drupal\avatarsCode
public function cacheEmpty(string $service_id, ?string $uri, EntityAvatarIdentifierInterface $identifier) : AvatarCacheInterface;