You are here

public function SearchApiAutocompleteSuggesterPluginBase::__construct in Search API Autocomplete 7

Constructs a SearchApiAutocompleteSuggesterPluginBase.

Parameters

SearchApiAutocompleteSearch $search: The search to which this suggester is attached.

array $configuration: An associative array containing the suggester's configuration, if any.

string $plugin_id: The suggester's plugin ID.

array $plugin_definition: The suggester plugin's definition.

File

src/SearchApiAutocompleteSuggesterPluginBase.php, line 73
Contains SearchApiAutocompleteSuggesterPluginBase.

Class

SearchApiAutocompleteSuggesterPluginBase
Provides a base class for suggester plugins.

Code

public function __construct(SearchApiAutocompleteSearch $search, array $configuration, $plugin_id, array $plugin_definition) {
  $this->search = $search;
  $this->pluginId = $plugin_id;
  $this->pluginDefinition = $plugin_definition;
  $this
    ->setConfiguration($configuration);
}