You are here

public static function DurationWidget::defaultSettings in Duration 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/DurationWidget.php, line 73

Class

DurationWidget
Creates a default widget to output a duration field.

Namespace

Drupal\duration_field\Plugin\Field\FieldWidget

Code

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