You are here

public static function IntervalWidget::defaultSettings in Interval Field 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/IntervalWidget.php, line 72

Class

IntervalWidget
Provides an interval widget.

Namespace

Drupal\interval\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'allowed_periods' => [],
  ] + parent::defaultSettings();
}