You are here

public function RateField::buildOptionsForm in Rate 8

Provide the options form.

Overrides FieldPluginBase::buildOptionsForm

File

src/Plugin/views/field/RateField.php, line 42

Class

RateField
Field handler to flag the node type.

Namespace

Drupal\rate\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  $form['widget_type'] = [
    '#title' => $this
      ->t('Widget type'),
    '#type' => 'select',
    '#default_value' => $this->options['widget_type'],
    '#options' => RateEntityVoteWidget::getRateWidgets(),
  ];
  parent::buildOptionsForm($form, $form_state);
}