You are here

public static function Utility::getLanguageSpecificSolrDynamicFieldPrefix in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 src/Utility/Utility.php \Drupal\search_api_solr\Utility\Utility::getLanguageSpecificSolrDynamicFieldPrefix()
  2. 4.x src/Utility/Utility.php \Drupal\search_api_solr\Utility\Utility::getLanguageSpecificSolrDynamicFieldPrefix()

Gets the language-specific prefix for a dynamic Solr field.

Parameters

string $prefix: The language-unspecific prefix.

string $language_id: The Drupal language code.

Return value

string The language-specific prefix.

File

src/Utility/Utility.php, line 397

Class

Utility
Provides various helper functions for Solr backends.

Namespace

Drupal\search_api_solr\Utility

Code

public static function getLanguageSpecificSolrDynamicFieldPrefix($prefix, $language_id) {
  return $prefix . SolrBackendInterface::SEARCH_API_SOLR_LANGUAGE_SEPARATOR . $language_id . '_';
}