public static function Utility::getLanguageSpecificSolrDynamicFieldPrefix in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/Utility/Utility.php \Drupal\search_api_solr\Utility\Utility::getLanguageSpecificSolrDynamicFieldPrefix()
- 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.
3 calls to Utility::getLanguageSpecificSolrDynamicFieldPrefix()
- AbstractSearchApiSolrMultilingualBackend::alterSolrDocuments in src/
Plugin/ search_api/ backend/ AbstractSearchApiSolrMultilingualBackend.php - Replaces language unspecific fulltext fields by language specific ones.
- SolrFieldType::getDynamicFields in src/
Entity/ SolrFieldType.php - Gets a list of dynamic Solr fields that will use this Solr Field Type.
- UtilitiesTest::doDynamicFieldNameConversions in tests/
src/ Kernel/ UtilitiesTest.php - Tests all conversion and extraction functions.
File
- src/
Utility/ Utility.php, line 397
Class
- Utility
- Provides various helper functions for Solr backends.
Namespace
Drupal\search_api_solr\UtilityCode
public static function getLanguageSpecificSolrDynamicFieldPrefix($prefix, $language_id) {
return $prefix . SEARCH_API_SOLR_LANGUAGE_SEPARATOR . $language_id . '_';
}