You are here

public static function RangeWidget::defaultSettings in Range 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/RangeWidget.php, line 28

Class

RangeWidget
Plugin implementation of the 'range' widget.

Namespace

Drupal\range\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'placeholder' => [
      'from' => '',
      'to' => '',
    ],
    'label' => [
      'from' => t('From'),
      'to' => t('to'),
    ],
  ] + parent::defaultSettings();
}