You are here

public static function DateRangeDurationWidget::defaultSettings in Datetime Extras 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/DateRangeDurationWidget.php, line 75

Class

DateRangeDurationWidget
Plugin implementation of the 'daterange_duration' widget.

Namespace

Drupal\datetime_extras\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'default_duration' => [],
    'duration_granularity' => 'd:h:i',
    'time_increment' => '1',
  ] + parent::defaultSettings();
}