You are here

public static function BootstrapDateTimeWidget::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/BootstrapDateTimeWidget.php, line 31

Class

BootstrapDateTimeWidget
Plugin implementation of the BootstrapDateTimeWidget widget.

Namespace

Drupal\bootstrap_datetime_picker\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'wrapper_class' => 'container',
    'column_size_class' => 'col-sm-6',
    'hour_format' => '24h',
    'allow_times' => '15',
    'disable_days' => [],
    'exclude_date' => '',
  ];
}