You are here

public function SearchApiBaseFacetSource::getIndex in Facets 8

Returns the search_api index.

Return value

\Drupal\search_api\IndexInterface The Search API index.

Overrides SearchApiFacetSourceInterface::getIndex

File

src/Plugin/facets/facet_source/SearchApiBaseFacetSource.php, line 79

Class

SearchApiBaseFacetSource
A base class for Search API facet sources.

Namespace

Drupal\facets\Plugin\facets\facet_source

Code

public function getIndex() {
  @trigger_error('Relying on $this->index is deprecated in facets:8.x-1.5. It will be removed from facets:8.x-2.0. Instead, all subclasses should implement ::getIndex() themselves, and the blanket implementation will be removed from SearchApiBaseFacetSource. See https://www.drupal.org/node/3154173', E_USER_DEPRECATED);
  return $this->index;
}