You are here

class VotingApiWidget in Votingapi Widgets 8

Same name in this branch
  1. 8 src/Annotation/VotingApiWidget.php \Drupal\votingapi_widgets\Annotation\VotingApiWidget
  2. 8 src/Plugin/Field/FieldWidget/VotingApiWidget.php \Drupal\votingapi_widgets\Plugin\Field\FieldWidget\VotingApiWidget

Defines a Voting api widget item annotation object.

Hierarchy

Expanded class hierarchy of VotingApiWidget

See also

\Drupal\votingapi_widgets\Plugin\VotingApiWidgetManager

Plugin API

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\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2
VotingApiWidget::$id public property The plugin ID.
VotingApiWidget::$label public property The label of the plugin.
VotingApiWidget::$values public property The minimal vote.