You are here

public function AvatarKitLocalCacheInterface::getLocalCache in Avatar Kit 8.2

Determines if a avatar cache exists.

Parameters

string $service_id: An avatar service ID.

\Drupal\avatars\EntityAvatarIdentifierInterface $identifier: An entity avatar identifier.

Return value

\Drupal\avatars\Entity\AvatarCacheInterface|null An avatar cache entity, or NULL if it does not exist given parameters.

1 method overrides AvatarKitLocalCacheInterface::getLocalCache()
AvatarKitLocalCache::getLocalCache in src/AvatarKitLocalCache.php
Determines if a avatar cache exists.

File

src/AvatarKitLocalCacheInterface.php, line 24

Class

AvatarKitLocalCacheInterface
Cache remote files locally into file entities.

Namespace

Drupal\avatars

Code

public function getLocalCache(string $service_id, EntityAvatarIdentifierInterface $identifier) : ?AvatarCacheInterface;