You are here

public function AvatarManagerInterface::getAvatarGeneratorsForUser in Avatar Kit 8

Gets a lit of active plugins a user has permission to use.

Parameters

\Drupal\user\UserInterface $user: A user entity.

bool $exclude_user_preference: Exclude 'user preference' plugin types.

Return value

\Drupal\avatars\AvatarGeneratorInterface[]|\Generator An array of avatar generator entities.

1 method overrides AvatarManagerInterface::getAvatarGeneratorsForUser()
AvatarManager::getAvatarGeneratorsForUser in src/AvatarManager.php
Gets a lit of active plugins a user has permission to use.

File

src/AvatarManagerInterface.php, line 122

Class

AvatarManagerInterface
Provides an interface to the avatar manager service.

Namespace

Drupal\avatars

Code

public function getAvatarGeneratorsForUser(UserInterface $user, $exclude_user_preference = TRUE);