You are here

public function SliderWidget::defaultConfiguration in Facets 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides WidgetPluginBase::defaultConfiguration

File

modules/facets_range_widget/src/Plugin/facets/widget/SliderWidget.php, line 23

Class

SliderWidget
The slider widget.

Namespace

Drupal\facets_range_widget\Plugin\facets\widget

Code

public function defaultConfiguration() {
  return [
    'prefix' => '',
    'suffix' => '',
    'min_type' => 'search_result',
    'min_value' => 0,
    'max_type' => 'search_result',
    'max_value' => 10,
    'step' => 1,
  ] + parent::defaultConfiguration();
}