function DateRangeDatelistWidget::defaultSettings

Same name in other branches
  1. 8.9.x core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php \Drupal\datetime_range\Plugin\Field\FieldWidget\DateRangeDatelistWidget::defaultSettings()
  2. 10 core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php \Drupal\datetime_range\Plugin\Field\FieldWidget\DateRangeDatelistWidget::defaultSettings()
  3. 11.x core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php \Drupal\datetime_range\Plugin\Field\FieldWidget\DateRangeDatelistWidget::defaultSettings()

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.