You are here

public function SolrDocumentDefinition::getServerId in Search API Solr 8.2

Gets the Search API Server ID.

Return value

string|null The Server ID, or NULL if the Server is unknown.

Overrides SolrDocumentDefinitionInterface::getServerId

1 call to SolrDocumentDefinition::getServerId()
SolrDocumentDefinition::getPropertyDefinitions in src/TypedData/SolrDocumentDefinition.php
Gets an array of property definitions of contained properties.

File

src/TypedData/SolrDocumentDefinition.php, line 53

Class

SolrDocumentDefinition
A typed data definition class for describing Solr documents.

Namespace

Drupal\search_api_solr\TypedData

Code

public function getServerId() {
  return isset($this->definition['constraints']['Server']) ? $this->definition['constraints']['Server'] : NULL;
}