You are here

public function AvatarKitEntityHandlerInterface::findAll in Avatar Kit 8.2

Iterates through all avatar services for a user.

Downloads and caches the avatar locally, then produces an avatar cache for each.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: Get the avatars for this entity.

Return value

\Generator|\Drupal\avatars\Entity\AvatarCacheInterface[] A generator where keys are service plugin ID's and values are avatar cache entities.

1 method overrides AvatarKitEntityHandlerInterface::findAll()
AvatarKitEntityHandler::findAll in src/AvatarKitEntityHandler.php
Iterates through all avatar services for a user.

File

src/AvatarKitEntityHandlerInterface.php, line 40

Class

AvatarKitEntityHandlerInterface
Downloads and caches avatars into entities.

Namespace

Drupal\avatars

Code

public function findAll(EntityInterface $entity) : \Generator;