You are here

public static function ExistingAutocompleteFieldWidget::defaultSettings in Existing Values Autocomplete Widget 8

Same name and namespace in other branches
  1. 2.x 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\FieldWidget

Code

public static function defaultSettings() {
  return [
    'size' => 60,
    'placeholder' => '',
    'suggestions_count' => 15,
  ] + parent::defaultSettings();
}