public static function SearchApiAutocompleteSuggesterInterface::create in Search API Autocomplete 7
Creates a new instance of this class.
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.
Return value
static A new instance of this class.
1 method overrides SearchApiAutocompleteSuggesterInterface::create()
- SearchApiAutocompleteSuggesterPluginBase::create in src/
SearchApiAutocompleteSuggesterPluginBase.php - Creates a new instance of this class.
File
- src/
SearchApiAutocompleteSuggesterInterface.php, line 31 - Contains SearchApiAutocompleteSuggesterInterface.
Class
- SearchApiAutocompleteSuggesterInterface
- Represents a plugin for creating autocomplete suggestions.
Code
public static function create(SearchApiAutocompleteSearch $search, array $configuration, $plugin_id, array $plugin_definition);