You are here

public static function AutocompleteDeluxeWidget::defaultSettings in Autocomplete Deluxe 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldWidget/AutocompleteDeluxeWidget.php \Drupal\autocomplete_deluxe\Plugin\Field\FieldWidget\AutocompleteDeluxeWidget::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/AutocompleteDeluxeWidget.php, line 82

Class

AutocompleteDeluxeWidget
Plugin implementation of the 'options_buttons' widget.

Namespace

Drupal\autocomplete_deluxe\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'match_operator' => 'CONTAINS',
    'autocomplete_route_name' => 'autocomplete_deluxe.autocomplete',
    'size' => 60,
    'selection_handler' => 'default',
    'limit' => 10,
    'min_length' => 0,
    'delimiter' => '',
    'not_found_message_allow' => FALSE,
    'not_found_message' => "The term '@term' will be added",
    'new_terms' => FALSE,
    'no_empty_message' => 'No terms could be found. Please type in order to add a new term.',
  ] + parent::defaultSettings();
}