You are here

protected function RateField::defineOptions in Rate 8

Define the available options.

Return value

array Array of options.

Overrides FieldPluginBase::defineOptions

File

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

Class

RateField
Field handler to flag the node type.

Namespace

Drupal\rate\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['widget_type'] = [
    'default' => 'fivestar',
  ];
  return $options;
}