You are here

public function AvatarKitEntityHandler::__construct in Avatar Kit 8.2

AvatarKitManager constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

\Drupal\avatars\AvatarKitLocalCache $entityLocalCache: Avatar Kit local cache.

\Drupal\avatars\AvatarKitEntityPreferenceManagerInterface $preferenceManager: Avatar Kit preference manager.

File

src/AvatarKitEntityHandler.php, line 47

Class

AvatarKitEntityHandler
Downloads and caches avatars into entities.

Namespace

Drupal\avatars

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, AvatarKitLocalCache $entityLocalCache, AvatarKitEntityPreferenceManagerInterface $preferenceManager) {
  $this->serviceStorage = $entityTypeManager
    ->getStorage('avatars_service');
  $this->entityLocalCache = $entityLocalCache;
  $this->preferenceManager = $preferenceManager;
}