You are here

public static function TimeWidget::defaultSettings in Time Field For Drupal 8.x / 9.x 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldWidget/TimeWidget.php \Drupal\time_field\Plugin\Field\FieldWidget\TimeWidget::defaultSettings()

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 26

Class

TimeWidget
Plugin implementation of the 'time_widget' widget.

Namespace

Drupal\time_field\Plugin\Field\FieldWidget

Code

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