You are here

public function Select2Widget::defaultConfiguration in Select 2 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides WidgetPluginBase::defaultConfiguration

File

modules/select2_facets/src/Plugin/facets/widget/Select2Widget.php, line 65

Class

Select2Widget
The select2 widget.

Namespace

Drupal\select2_facets\Plugin\facets\widget

Code

public function defaultConfiguration() {
  return [
    'autocomplete' => FALSE,
    'match_operator' => 'CONTAINS',
    'width' => '100%',
  ] + parent::defaultConfiguration();
}