class LinkBadge in Link Badges 8
Same name in this branch
- 8 src/Annotation/LinkBadge.php \Drupal\link_badges\Annotation\LinkBadge
 - 8 src/Plugin/views/display/LinkBadge.php \Drupal\link_badges\Plugin\views\display\LinkBadge
 
Defines a LinkBadge annotation object.
Plugin Namespace: Plugin\LinkBadge
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\link_badges\Annotation\LinkBadge
 
 
Expanded class hierarchy of LinkBadge
See also
1 file declares its use of LinkBadge
- ViewsBadge.php in src/
Plugin/ LinkBadge/ ViewsBadge.php  
2 classes are annotated with LinkBadge
- TestBadge in src/
Plugin/ LinkBadge/ TestBadge.php  - A badge that displays "Test"
 - ViewsBadge in src/
Plugin/ LinkBadge/ ViewsBadge.php  - Class ViewsBadge
 
File
- src/
Annotation/ LinkBadge.php, line 16  
Namespace
Drupal\link_badges\AnnotationView source
class LinkBadge extends Plugin {
  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;
  /**
   * The human-readable name of the link badge plugin.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            LinkBadge:: | 
                  public | property | The plugin ID. | |
| 
            LinkBadge:: | 
                  public | property | The human-readable name of the link badge 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 |