class AvatarKitService in Avatar Kit 8.2
Same name in this branch
- 8.2 src/Annotation/AvatarKitService.php \Drupal\avatars\Annotation\AvatarKitService
- 8.2 src/Entity/AvatarKitService.php \Drupal\avatars\Entity\AvatarKitService
Defines the annotation for AvatarKitService plugins.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\avatars\Annotation\AvatarKitService
Expanded class hierarchy of AvatarKitService
1 file declares its use of AvatarKitService
2 classes are annotated with AvatarKitService
- AvatarKitCommonService in src/
Plugin/ Avatars/ Service/ AvatarKitCommonService.php - Automatically creates services based on plugins from Avatar Kit library.
- AvatarKitEntityField in src/
Plugin/ Avatars/ Service/ AvatarKitEntityField.php - Gets avatar from a field in the same entity.
File
- src/
Annotation/ AvatarKitService.php, line 12
Namespace
Drupal\avatars\AnnotationView source
class AvatarKitService extends Plugin {
/**
* Unique identifier of the service.
*
* @var string
* @Required
*/
public $id;
/**
* Description of the service.
*
* @var string
* @Required
*/
public $description;
/**
* Whether the service uses File entities as a source.
*
* @var bool
*/
public $files = FALSE;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AvatarKitService:: |
public | property | Description of the service. | |
AvatarKitService:: |
public | property | Whether the service uses File entities as a source. | |
AvatarKitService:: |
public | property | Unique identifier of the service. | |
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 |