public function Index::getServerId in Search API 8
Retrieves the ID of the server the index is attached to.
Return value
string|null The index's server's ID, or NULL if the index doesn't have a server.
Overrides IndexInterface::getServerId
1 call to Index::getServerId()
- Index::reactToServerSwitch in src/
Entity/ Index.php - Checks whether the index switched server and reacts accordingly.
File
- src/
Entity/ Index.php, line 493
Class
- Index
- Defines the search index configuration entity.
Namespace
Drupal\search_api\EntityCode
public function getServerId() {
return $this->server;
}