public function UnsavedIndexConfiguration::getServerInstance in Search API 8
Retrieves the server the index is attached to.
Return value
\Drupal\search_api\ServerInterface|null The server this index is linked to, or NULL if the index doesn't have a server.
Throws
\Drupal\search_api\SearchApiException Thrown if the server couldn't be loaded.
Overrides IndexInterface::getServerInstance
File
- src/
UnsavedIndexConfiguration.php, line 350
Class
- UnsavedIndexConfiguration
- Represents a configuration of an index that was not yet permanently saved.
Namespace
Drupal\search_apiCode
public function getServerInstance() {
return $this->entity
->getServerInstance();
}