You are here

AvatarGeneratorStorage.php in Avatar Kit 8

Namespace

Drupal\avatars

File

src/AvatarGeneratorStorage.php
View source
<?php

namespace Drupal\avatars;

use Drupal\Core\Config\Entity\ConfigEntityStorage;

/**
 * Storage controller for avatar generators.
 */
class AvatarGeneratorStorage extends ConfigEntityStorage implements AvatarGeneratorStorageInterface {

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

}

Classes

Namesort descending Description
AvatarGeneratorStorage Storage controller for avatar generators.