public static function FractionDecimalWidget::defaultSettings in Fraction 8
Same name and namespace in other branches
- 2.x src/Plugin/Field/FieldWidget/FractionDecimalWidget.php \Drupal\fraction\Plugin\Field\FieldWidget\FractionDecimalWidget::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/ FractionDecimalWidget.php, line 26
Class
- FractionDecimalWidget
- Plugin implementation of the 'fraction_decimal' widget.
Namespace
Drupal\fraction\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'precision' => 0,
'auto_precision' => TRUE,
] + parent::defaultSettings();
}