You are here

public static function SearchApiSolrConnectionInterface::escapeFieldName in Search API Solr 7

Escapes a Search API field name for passing to Solr.

Since field names can only contain one special character, ":", there is no need to use the complete escape() method.

Parameters

string $value: The field name to escape.

Return value

string An escaped string suitable for passing to Solr.

1 method overrides SearchApiSolrConnectionInterface::escapeFieldName()
SearchApiSolrConnection::escapeFieldName in includes/solr_connection.inc
Escapes a Search API field name for passing to Solr.

File

includes/solr_connection.interface.inc, line 353

Class

SearchApiSolrConnectionInterface
The interface for a Solr connection class.

Code

public static function escapeFieldName($value);