public static function SmartDateWidgetBase::defaultSettings in Smart Date 3.3.x
Same name and namespace in other branches
- 3.0.x src/Plugin/Field/FieldWidget/SmartDateWidgetBase.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateWidgetBase::defaultSettings()
- 3.1.x src/Plugin/Field/FieldWidget/SmartDateWidgetBase.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateWidgetBase::defaultSettings()
- 3.2.x src/Plugin/Field/FieldWidget/SmartDateWidgetBase.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateWidgetBase::defaultSettings()
- 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\FieldWidgetCode
public static function defaultSettings() {
return [
'show_extra' => TRUE,
'hide_date' => TRUE,
] + parent::defaultSettings();
}