You are here

public function IndexPluginBase::getIndex in Search API 8

Retrieves the index this plugin is configured for.

Return value

\Drupal\search_api\IndexInterface The index this plugin is configured for.

Overrides IndexPluginInterface::getIndex

File

src/Plugin/IndexPluginBase.php, line 33

Class

IndexPluginBase
Provides a base class for plugins linked to a search index.

Namespace

Drupal\search_api\Plugin

Code

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