You are here

public static function SmartDateDefaultWidget::defaultSettings in Smart Date 3.1.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/SmartDateDefaultWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDefaultWidget::defaultSettings()
  2. 3.x src/Plugin/Field/FieldWidget/SmartDateDefaultWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDefaultWidget::defaultSettings()
  3. 3.0.x src/Plugin/Field/FieldWidget/SmartDateDefaultWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDefaultWidget::defaultSettings()
  4. 3.2.x src/Plugin/Field/FieldWidget/SmartDateDefaultWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDefaultWidget::defaultSettings()
  5. 3.3.x src/Plugin/Field/FieldWidget/SmartDateDefaultWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDefaultWidget::defaultSettings()
  6. 3.4.x src/Plugin/Field/FieldWidget/SmartDateDefaultWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDefaultWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides SmartDateWidgetBase::defaultSettings

1 call to SmartDateDefaultWidget::defaultSettings()
SmartDateTimezoneWidget::defaultSettings in src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php
Defines the default settings for this plugin.
1 method overrides SmartDateDefaultWidget::defaultSettings()
SmartDateTimezoneWidget::defaultSettings in src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldWidget/SmartDateDefaultWidget.php, line 37

Class

SmartDateDefaultWidget
Plugin implementation of the 'smartdate_default' widget.

Namespace

Drupal\smart_date\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'modal' => FALSE,
    'default_duration' => 60,
    'default_duration_increments' => "30\n60|1 hour\n90\n120|2 hours\ncustom",
  ] + parent::defaultSettings();
}