You are here

public function AvatarGeneratorStorage::getEnabledAvatarGenerators in Avatar Kit 8

Get all enabled avatar generator plugin instances.

Return value

\Drupal\avatars\AvatarGeneratorInterface[] An array of avatar generator plugin instances.

Overrides AvatarGeneratorStorageInterface::getEnabledAvatarGenerators

File

src/AvatarGeneratorStorage.php, line 15

Class

AvatarGeneratorStorage
Storage controller for avatar generators.

Namespace

Drupal\avatars

Code

public function getEnabledAvatarGenerators() {
  $result = $this
    ->getQuery()
    ->condition('status', TRUE)
    ->execute();
  return $this
    ->loadMultiple($result);
}