public function SearchApiDisplay::getIndex in Facets 8
Retrieves the Search API index for this facet source.
Return value
\Drupal\search_api\IndexInterface The search index.
Overrides SearchApiFacetSourceInterface::getIndex
2 calls to SearchApiDisplay::getIndex()
- SearchApiDisplay::getFields in src/
Plugin/ facets/ facet_source/ SearchApiDisplay.php - Returns an array of fields that are defined on the facet source.
- SearchApiDisplay::getQueryTypesForFacet in src/
Plugin/ facets/ facet_source/ SearchApiDisplay.php - Returns the allowed query types for a given facet for the facet source.
File
- src/
Plugin/ facets/ facet_source/ SearchApiDisplay.php, line 127
Class
- SearchApiDisplay
- Provides a facet source based on a Search API display.
Namespace
Drupal\facets\Plugin\facets\facet_sourceCode
public function getIndex() {
if ($this->index === NULL) {
$this->index = $this
->getDisplay()
->getIndex();
}
return $this->index;
}