You are here

public static function BootstrapDateRangeWidget::defaultSettings in Bootstrap DateTime Picker 2.0.x

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/BootstrapDateRangeWidget.php, line 32

Class

BootstrapDateRangeWidget
Plugin implementation of the BootstrapDateTimeWidget widget.

Namespace

Drupal\bootstrap_datetime_picker\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'hour_format' => '24h',
    'allow_times' => '15',
    'disable_days' => [],
    'exclude_date' => '',
  ];
}