You are here

public function Select2Widget::__construct in Select 2 8

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides WidgetPluginBase::__construct

File

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

Class

Select2Widget
The select2 widget.

Namespace

Drupal\select2_facets\Plugin\facets\widget

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Request $request, KeyValueStoreInterface $key_value_store) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->request = $request;
  $this->keyValueStore = $key_value_store;
}