public function DisplayPluginBase::getIndex in Search API 8
Returns the index used by this display.
Return value
\Drupal\search_api\IndexInterface The search index used by this display.
Overrides DisplayInterface::getIndex
1 call to DisplayPluginBase::getIndex()
- DisplayPluginBase::calculateDependencies in src/
Display/ DisplayPluginBase.php - Calculates dependencies for the configured plugin.
File
- src/
Display/ DisplayPluginBase.php, line 129
Class
- DisplayPluginBase
- Defines a base class from which other display classes may extend.
Namespace
Drupal\search_api\DisplayCode
public function getIndex() {
$plugin_definition = $this
->getPluginDefinition();
return $this
->getEntityTypeManager()
->getStorage('search_api_index')
->load($plugin_definition['index']);
}