You are here

public static function SmartDateWidgetBase::defaultSettings in Smart Date 3.2.x

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

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

2 calls to SmartDateWidgetBase::defaultSettings()
SmartDateDatelistWidget::defaultSettings in src/Plugin/Field/FieldWidget/SmartDateDatelistWidget.php
Defines the default settings for this plugin.
SmartDateDefaultWidget::defaultSettings in src/Plugin/Field/FieldWidget/SmartDateDefaultWidget.php
Defines the default settings for this plugin.
2 methods override SmartDateWidgetBase::defaultSettings()
SmartDateDatelistWidget::defaultSettings in src/Plugin/Field/FieldWidget/SmartDateDatelistWidget.php
Defines the default settings for this plugin.
SmartDateDefaultWidget::defaultSettings in src/Plugin/Field/FieldWidget/SmartDateDefaultWidget.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldWidget/SmartDateWidgetBase.php, line 28

Class

SmartDateWidgetBase
Base class for the 'smartdate_*' widgets.

Namespace

Drupal\smart_date\Plugin\Field\FieldWidget

Code

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