You are here

public function PluginHelper::__construct in Search API 8

Constructs a PluginHelper object.

Parameters

\Drupal\search_api\Datasource\DatasourcePluginManager $datasource_plugin_manager: The datasource plugin manager.

\Drupal\search_api\Processor\ProcessorPluginManager $processor_plugin_manager: The processor plugin manager.

\Drupal\search_api\Tracker\TrackerPluginManager $tracker_plugin_manager: The tracker plugin manager.

File

src/Utility/PluginHelper.php, line 48

Class

PluginHelper
Provides methods for creating search plugins.

Namespace

Drupal\search_api\Utility

Code

public function __construct(DatasourcePluginManager $datasource_plugin_manager, ProcessorPluginManager $processor_plugin_manager, TrackerPluginManager $tracker_plugin_manager) {
  $this->datasourcePluginManager = $datasource_plugin_manager;
  $this->processorPluginManager = $processor_plugin_manager;
  $this->trackerPluginManager = $tracker_plugin_manager;
}