You are here

class VoteUpDownWidget in Vote Up/Down 8

Defines a Vote Up/Down Widget annotation object.

Hierarchy

Expanded class hierarchy of VoteUpDownWidget

See also

\Drupal\vud\Plugin\VoteUpDownWidgetManager

Plugin API

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

... See full list

File

src/Annotation/VoteUpDownWidget.php, line 15

Namespace

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

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
VoteUpDownWidget::$admin_label public property Human readable label of a widget.
VoteUpDownWidget::$description public property Human readable description of a widget.
VoteUpDownWidget::$id public property Machine name of a plugin.
VoteUpDownWidget::$votes_template public property Vote's Template file name (without extension).
VoteUpDownWidget::$widget_template public property Widget's Template file name (without extension).