class AvatarGenerator in Avatar Kit 8
Same name in this branch
- 8 src/Annotation/AvatarGenerator.php \Drupal\avatars\Annotation\AvatarGenerator
 - 8 src/Entity/AvatarGenerator.php \Drupal\avatars\Entity\AvatarGenerator
 
Defines an annotation for AvatarGenerator plugins.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\avatars\Annotation\AvatarGenerator
 
 
Expanded class hierarchy of AvatarGenerator
9 classes are annotated with AvatarGenerator
- Adorable in avatars_adorable/
src/ Plugin/ AvatarGenerator/ Adorable.php  - Adorable.io avatar generator.
 - Broken in src/
Plugin/ AvatarGenerator/ Broken.php  - Fallback plugin for missing AvatarGenerator plugins.
 - DynamicTestGenerator in tests/
modules/ avatars_test/ src/ Plugin/ AvatarGenerator/ DynamicTestGenerator.php  - Dynamic test avatar generator.
 - Gravatar in avatars_gravatar/
src/ Plugin/ AvatarGenerator/ Gravatar.php  - Gravatar avatar generator.
 - GravatarGenerator in avatars_gravatar/
src/ Plugin/ AvatarGenerator/ GravatarGenerator.php  - Gravatar generated avatars generator.
 
File
- src/
Annotation/ AvatarGenerator.php, line 12  
Namespace
Drupal\avatars\AnnotationView source
class AvatarGenerator extends Plugin {
  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;
  /**
   * The human-readable name of the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   * @ingroup plugin_translatable
   */
  public $label;
  /**
   * The weight of the plugin.
   *
   * @var int
   */
  public $weight;
  /**
   * The description of the avatar generator.
   *
   * @var \Drupal\Core\Annotation\Translation
   * @ingroup plugin_translatable
   */
  public $description;
  /**
   * Whether the avatar generated by generator can change.
   *
   * @var bool
   */
  public $dynamic = FALSE;
  /**
   * Whether the generator will always produce an avatar.
   *
   * @var bool
   */
  public $fallback = FALSE;
  /**
   * Defines the source of the avatar.
   *
   * Whether the generator produces a URI for downloading the avatar (uses
   * generateUri method). Otherwise the file is already local (use getFile
   * method).
   *
   * @var bool
   */
  public $remote = FALSE;
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            AvatarGenerator:: | 
                  public | property | The description of the avatar generator. | |
| 
            AvatarGenerator:: | 
                  public | property | Whether the avatar generated by generator can change. | |
| 
            AvatarGenerator:: | 
                  public | property | Whether the generator will always produce an avatar. | |
| 
            AvatarGenerator:: | 
                  public | property | The plugin ID. | |
| 
            AvatarGenerator:: | 
                  public | property | The human-readable name of the plugin. | |
| 
            AvatarGenerator:: | 
                  public | property | Defines the source of the avatar. | |
| 
            AvatarGenerator:: | 
                  public | property | The weight of the plugin. | |
| 
            Plugin:: | 
                  protected | property | The plugin definition read from the class annotation. | 1 | 
| 
            Plugin:: | 
                  public | function | 
            Gets the value of an annotation. Overrides AnnotationInterface:: | 
                  5 | 
| 
            Plugin:: | 
                  public | function | 
            Gets the class of the annotated class. Overrides AnnotationInterface:: | 
                  |
| 
            Plugin:: | 
                  public | function | 
            Gets the unique ID for this annotated class. Overrides AnnotationInterface:: | 
                  |
| 
            Plugin:: | 
                  public | function | 
            Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: | 
                  |
| 
            Plugin:: | 
                  protected | function | Parses an annotation into its definition. | |
| 
            Plugin:: | 
                  public | function | 
            Sets the class of the annotated class. Overrides AnnotationInterface:: | 
                  |
| 
            Plugin:: | 
                  public | function | 
            Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: | 
                  |
| 
            Plugin:: | 
                  public | function | Constructs a Plugin object. | 2 |