You are here

public function PluginHelper::__construct in Search API Autocomplete 8

Constructs a PluginHelper object.

Parameters

\Drupal\search_api_autocomplete\Suggester\SuggesterManager $suggester_plugin_manager: The suggester plugin manager.

\Drupal\search_api_autocomplete\Search\SearchPluginManager $search_plugin_manager: The search plugin manager.

File

src/Utility/PluginHelper.php, line 38

Class

PluginHelper
Provides methods for creating autocomplete search plugins.

Namespace

Drupal\search_api_autocomplete\Utility

Code

public function __construct(SuggesterManager $suggester_plugin_manager, SearchPluginManager $search_plugin_manager) {
  $this->suggesterPluginManager = $suggester_plugin_manager;
  $this->searchPluginManager = $search_plugin_manager;
}