public function IndexInterface::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.
2 methods override IndexInterface::getServerInstance()
- Index::getServerInstance in src/
Entity/ Index.php - Retrieves the server the index is attached to.
- UnsavedIndexConfiguration::getServerInstance in src/
UnsavedIndexConfiguration.php - Retrieves the server the index is attached to.
File
- src/
IndexInterface.php, line 271
Class
- IndexInterface
- Defines the interface for index entities.
Namespace
Drupal\search_apiCode
public function getServerInstance();