You are here

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

Retrieves the Search API index for this facet source.

Return value

\Drupal\search_api\IndexInterface The search index.

Overrides SearchApiBaseFacetSource::getIndex

File

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

Class

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

Namespace

Drupal\jsonapi_search_api_facets\Plugin\facets\facet_source

Code

public function getIndex() {
  return $this->index;
}