public static function ExistingAutocompleteFieldWidget::defaultSettings in Existing Values Autocomplete Widget 2.x
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldWidget/ExistingAutocompleteFieldWidget.php \Drupal\existing_values_autocomplete_widget\Plugin\Field\FieldWidget\ExistingAutocompleteFieldWidget::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/ ExistingAutocompleteFieldWidget.php, line 25
Class
- ExistingAutocompleteFieldWidget
- Plugin implementation of the 'existing_autocomplete_field_widget' widget.
Namespace
Drupal\existing_values_autocomplete_widget\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'size' => 60,
'placeholder' => '',
'suggestions_count' => 15,
] + parent::defaultSettings();
}