class VotingApiWidget in Votingapi Widgets 8
Same name in this branch
- 8 src/Annotation/VotingApiWidget.php \Drupal\votingapi_widgets\Annotation\VotingApiWidget
- 8 src/Plugin/Field/FieldWidget/VotingApiWidget.php \Drupal\votingapi_widgets\Plugin\Field\FieldWidget\VotingApiWidget
Defines a Voting api widget item annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\votingapi_widgets\Annotation\VotingApiWidget
Expanded class hierarchy of VotingApiWidget
See also
\Drupal\votingapi_widgets\Plugin\VotingApiWidgetManager
3 classes are annotated with VotingApiWidget
- FiveStarWidget in src/
Plugin/ votingapi_widget/ FiveStarWidget.php - Assigns ownership of a node to a user.
- LikeWidget in src/
Plugin/ votingapi_widget/ LikeWidget.php - Assigns ownership of a node to a user.
- UsefulWidget in src/
Plugin/ votingapi_widget/ UsefulWidget.php - Assigns ownership of a node to a user.
File
- src/
Annotation/ VotingApiWidget.php, line 15
Namespace
Drupal\votingapi_widgets\AnnotationView source
class VotingApiWidget extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The minimal vote.
*
* @var int
*/
public $values;
/**
* The label of the plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
}
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 |
VotingApiWidget:: |
public | property | The plugin ID. | |
VotingApiWidget:: |
public | property | The label of the plugin. | |
VotingApiWidget:: |
public | property | The minimal vote. |