You are here

public static function TimeWidget::defaultSettings in Field Time 1.0.x

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/TimeWidget.php, line 25

Class

TimeWidget
Plugin implementation of the 'time_widget' widget.

Namespace

Drupal\field_time\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'enabled' => FALSE,
    'step' => 5,
  ] + parent::defaultSettings();
}