public static function Utility::completeTextFileName in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/Utility/Utility.php \Drupal\search_api_solr\Utility\Utility::completeTextFileName()
- 8.2 src/Utility/Utility.php \Drupal\search_api_solr\Utility\Utility::completeTextFileName()
Returns the complete file name for a text file.
Parameters
string $text_file_name: The base name of the text file.
\Drupal\search_api_solr\SolrFieldTypeInterface $solr_field_type: The Solr field type.
Return value
string The complete file name.
2 calls to Utility::completeTextFileName()
- SolrConfigSetController::getConfigFiles in src/
Controller/ SolrConfigSetController.php - Returns the configuration files names and content.
- SolrFieldTypeForm::form in src/
Form/ SolrFieldTypeForm.php - Gets the actual form array to be built.
File
- src/
Utility/ Utility.php, line 487
Class
- Utility
- Provides various helper functions for Solr backends.
Namespace
Drupal\search_api_solr\UtilityCode
public static function completeTextFileName(string $text_file_name, SolrFieldTypeInterface $solr_field_type) {
if ($custom_code = $solr_field_type
->getCustomCode()) {
$text_file_name .= '_' . $custom_code;
}
return $text_file_name . '_' . str_replace('-', '_', $solr_field_type
->getFieldTypeLanguageCode()) . '.txt';
}