You are here

public static function EntityReferenceSynonymsAutocomplete::defaultSettings in Synonyms 2.0.x

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

modules/synonyms_autocomplete/src/Plugin/Field/FieldWidget/EntityReferenceSynonymsAutocomplete.php, line 27

Class

EntityReferenceSynonymsAutocomplete
Plugin implementation of the 'synonyms friendly autocomplete' widget.

Namespace

Drupal\synonyms_autocomplete\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'suggestion_size' => 10,
    'suggest_only_unique' => FALSE,
    'match' => 'CONTAINS',
  ] + parent::defaultSettings();
}