You are here

public function Sliders::defaultConfiguration in Better Exposed Filters 8.4

Same name and namespace in other branches
  1. 8.5 src/Plugin/better_exposed_filters/filter/Sliders.php \Drupal\better_exposed_filters\Plugin\better_exposed_filters\filter\Sliders::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides FilterWidgetBase::defaultConfiguration

File

src/Plugin/better_exposed_filters/filter/Sliders.php, line 32

Class

Sliders
JQuery UI slider widget implementation.

Namespace

Drupal\better_exposed_filters\Plugin\better_exposed_filters\filter

Code

public function defaultConfiguration() {
  return parent::defaultConfiguration() + [
    'min' => 0,
    'max' => 99999,
    'step' => 1,
    'animate' => self::ANIMATE_NONE,
    'animate_ms' => 0,
    'orientation' => self::ORIENTATION_HORIZONTAL,
  ];
}