You are here

public function SearchPluginBase::getIndexId in Search API Autocomplete 8

Retrieves the ID of the index to which this search plugin belongs.

Return value

string The search plugin's index's ID.

Overrides SearchPluginInterface::getIndexId

1 call to SearchPluginBase::getIndexId()
SearchPluginBase::getIndex in src/Search/SearchPluginBase.php
Retrieves the index to which this search plugin belongs.

File

src/Search/SearchPluginBase.php, line 106

Class

SearchPluginBase
Provides a base class for search plugins.

Namespace

Drupal\search_api_autocomplete\Search

Code

public function getIndexId() {
  return $this
    ->getPluginDefinition()['index'];
}