You are here

public function UnsavedIndexConfiguration::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

File

src/UnsavedIndexConfiguration.php, line 343

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function getServerId() {
  return $this->entity
    ->getServerId();
}