public static function Select2EntityReferenceWidget::defaultSettings in Select 2 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides Select2Widget::defaultSettings
File
- src/
Plugin/ Field/ FieldWidget/ Select2EntityReferenceWidget.php, line 60  
Class
- Select2EntityReferenceWidget
 - Plugin implementation of the 'select2' widget.
 
Namespace
Drupal\select2\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
  return [
    'autocomplete' => FALSE,
    'match_operator' => 'CONTAINS',
    'match_limit' => 10,
  ] + parent::defaultSettings();
}