You are here

public function PluginHelperInterface::createSearchPluginsForIndex in Search API Autocomplete 8

Creates objects for all search plugins associated with the given index.

Search plugins are first filtered by their "index" definition key and then via their getIndexId() method.

Parameters

string $index_id: The ID of the search index for which to create search plugins.

Return value

\Drupal\search_api_autocomplete\Search\SearchPluginInterface[] The created search plugin objects.

1 method overrides PluginHelperInterface::createSearchPluginsForIndex()
PluginHelper::createSearchPluginsForIndex in src/Utility/PluginHelper.php
Creates objects for all search plugins associated with the given index.

File

src/Utility/PluginHelperInterface.php, line 79

Class

PluginHelperInterface
Defines an interface for the autocomplete search "plugin helper" service.

Namespace

Drupal\search_api_autocomplete\Utility

Code

public function createSearchPluginsForIndex($index_id);