You are here

public function SearchPluginBase::getIndex in Search API Autocomplete 8

Retrieves the index to which this search plugin belongs.

Return value

\Drupal\search_api\IndexInterface The search plugin's index.

Overrides SearchPluginInterface::getIndex

1 call to SearchPluginBase::getIndex()
Page::createQuery in src/Plugin/search_api_autocomplete/search/Page.php
Creates a search query based on this search.

File

src/Search/SearchPluginBase.php, line 113

Class

SearchPluginBase
Provides a base class for search plugins.

Namespace

Drupal\search_api_autocomplete\Search

Code

public function getIndex() {
  return $this
    ->getEntityTypeManager()
    ->getStorage('search_api_index')
    ->load($this
    ->getIndexId());
}