You are here

public static function DateRangeDatelistWidget::defaultSettings in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php \Drupal\datetime_range\Plugin\Field\FieldWidget\DateRangeDatelistWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php, line 25

Class

DateRangeDatelistWidget
Plugin implementation of the 'daterange_datelist' widget.

Namespace

Drupal\datetime_range\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'increment' => '15',
    'date_order' => 'YMD',
    'time_type' => '24',
  ] + parent::defaultSettings();
}