You are here

public function JsonApiFacets::__construct in JSON:API Search API 8

Constructs a SearchApiBaseFacetSource object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\facets\QueryType\QueryTypePluginManager $query_type_plugin_manager: The query type plugin manager.

\Drupal\search_api\Utility\QueryHelper $search_results_cache: The query type plugin manager.

\Drupal\search_api\IndexInterface $index: The search index.

Overrides SearchApiBaseFacetSource::__construct

File

modules/jsonapi_search_api_facets/src/Plugin/facets/facet_source/JsonApiFacets.php, line 48

Class

JsonApiFacets
Provides a facet source for use in JSON:API.

Namespace

Drupal\jsonapi_search_api_facets\Plugin\facets\facet_source

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, QueryTypePluginManager $query_type_plugin_manager, QueryHelper $search_results_cache, IndexInterface $index) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $query_type_plugin_manager, $search_results_cache);
  $this->index = $index;
}