You are here

public function AvatarKitEntityFieldHandlerInterface::copyCacheToEntity in Avatar Kit 8.2

Copies the avatar in a cache entity to an entity.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: A entity.

\Drupal\avatars\Entity\AvatarCacheInterface $avatar_cache: An avatar cache entity.

1 method overrides AvatarKitEntityFieldHandlerInterface::copyCacheToEntity()
AvatarKitEntityFieldHandler::copyCacheToEntity in src/AvatarKitEntityFieldHandler.php
Copies the avatar in a cache entity to an entity.

File

src/AvatarKitEntityFieldHandlerInterface.php, line 23

Class

AvatarKitEntityFieldHandlerInterface
Handles pushing avatar caches into entities.

Namespace

Drupal\avatars

Code

public function copyCacheToEntity(FieldableEntityInterface $entity, AvatarCacheInterface $avatar_cache) : void;