public function PluginHelperInterface::createSuggesterPlugin in Search API Autocomplete 8
Creates a suggester plugin object for the given search.
Parameters
\Drupal\search_api_autocomplete\SearchInterface $search: The search for which to create the plugin.
string $plugin_id: The plugin's ID.
array $configuration: (optional) The configuration to set for the plugin.
Return value
\Drupal\search_api_autocomplete\Suggester\SuggesterInterface The new suggester plugin object.
Throws
\Drupal\search_api_autocomplete\SearchApiAutocompleteException Thrown if an unknown plugin ID is given.
1 method overrides PluginHelperInterface::createSuggesterPlugin()
- PluginHelper::createSuggesterPlugin in src/
Utility/ PluginHelper.php - Creates a suggester plugin object for the given search.
File
- src/
Utility/ PluginHelperInterface.php, line 28
Class
- PluginHelperInterface
- Defines an interface for the autocomplete search "plugin helper" service.
Namespace
Drupal\search_api_autocomplete\UtilityCode
public function createSuggesterPlugin(SearchInterface $search, $plugin_id, array $configuration = []);