public static function NumberWidget::defaultSettings in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/NumberWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\NumberWidget::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
- core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldWidget/ NumberWidget.php, line 29
Class
- NumberWidget
- Plugin implementation of the 'number' widget.
Namespace
Drupal\Core\Field\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'placeholder' => '',
] + parent::defaultSettings();
}