class VoteUpDownWidget in Vote Up/Down 8
Defines a Vote Up/Down Widget annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\vud\Annotation\VoteUpDownWidget
Expanded class hierarchy of VoteUpDownWidget
See also
\Drupal\vud\Plugin\VoteUpDownWidgetManager
6 classes are annotated with VoteUpDownWidget
- Alternate in src/
Plugin/ VoteUpDownWidget/ Alternate.php - Provides the "alternate" Vote Up/Down widget
- Plain in src/
Plugin/ VoteUpDownWidget/ Plain.php - Provides the "plain" Vote Up/Down widget
- Thumbs in src/
Plugin/ VoteUpDownWidget/ Thumbs.php - Provides the "thumbs" Vote Up/Down widget
- UpAndDown in src/
Plugin/ VoteUpDownWidget/ UpAndDown.php - Provides the "upanddown" Vote Up/Down widget
- UpDown in src/
Plugin/ VoteUpDownWidget/ UpDown.php - Provides the "updown" Vote Up/Down widget
File
- src/
Annotation/ VoteUpDownWidget.php, line 15
Namespace
Drupal\vud\AnnotationView source
class VoteUpDownWidget extends Plugin {
/**
* Machine name of a plugin.
*
* @var string
*/
public $id;
/**
* Human readable label of a widget.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $admin_label;
/**
* Human readable description of a widget.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $description;
/**
* Widget's Template file name (without extension).
*
* @var string
*/
public $widget_template = "widget";
/**
* Vote's Template file name (without extension).
*
* @var string
*/
public $votes_template = "";
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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 |
VoteUpDownWidget:: |
public | property | Human readable label of a widget. | |
VoteUpDownWidget:: |
public | property | Human readable description of a widget. | |
VoteUpDownWidget:: |
public | property | Machine name of a plugin. | |
VoteUpDownWidget:: |
public | property | Vote's Template file name (without extension). | |
VoteUpDownWidget:: |
public | property | Widget's Template file name (without extension). |