You are here

public static function RateEntityVoteWidget::getRateWidgets in Rate 8

Rate widgets.

Return value

array An array whose keys are widget types and whose values are widget names.

2 calls to RateEntityVoteWidget::getRateWidgets()
RateField::buildOptionsForm in src/Plugin/views/field/RateField.php
Provide the options form.
RateSettingsForm::buildForm in src/Form/RateSettingsForm.php
Form constructor.

File

src/RateEntityVoteWidget.php, line 139

Class

RateEntityVoteWidget
The rate.entity.vote_widget service.

Namespace

Drupal\rate

Code

public static function getRateWidgets() {
  return [
    "fivestar" => "Fivestar",
    "number_up_down" => "Number Up / Down",
    "thumbs_up" => "Thumbs Up",
    "thumbs_up_down" => "Thumbs Up / Down",
    "yesno" => "Yes / No",
  ];
}