public function PluginHelperInterface::createSearchPlugin in Search API Autocomplete 8
Creates a search 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\Search\SearchPluginInterface The new search plugin object.
Throws
\Drupal\search_api_autocomplete\SearchApiAutocompleteException Thrown if an unknown plugin ID is given.
1 method overrides PluginHelperInterface::createSearchPlugin()
- PluginHelper::createSearchPlugin in src/
Utility/ PluginHelper.php - Creates a search plugin object for the given search.
File
- src/
Utility/ PluginHelperInterface.php, line 46
Class
- PluginHelperInterface
- Defines an interface for the autocomplete search "plugin helper" service.
Namespace
Drupal\search_api_autocomplete\UtilityCode
public function createSearchPlugin(SearchInterface $search, $plugin_id, array $configuration = []);