You are here

public static function RangeSliderWidget::defaultSettings in Range Slider 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldWidget/RangeSliderWidget.php, line 35

Class

RangeSliderWidget
Plugin implementation of the 'range' widget.

Namespace

Drupal\range_slider\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'orientation' => 'horizontal',
    'output' => self::OPTION_NONE,
  ] + parent::defaultSettings();
}