protected function SearchApiElasticsearchAbstractService::setPath in Search API Elasticsearch 7
Helper function. Return the path in the correct format.
1 call to SearchApiElasticsearchAbstractService::setPath()
- SearchApiElasticsearchAbstractService::configurationFormValidate in includes/
SearchApiElasticsearchAbstractService.inc - Overrides configurationFormValidate().
File
- includes/
SearchApiElasticsearchAbstractService.inc, line 738 - Provides a Elasticsearch-based service class for the Search API.
Class
- SearchApiElasticsearchAbstractService
- Elasticsearch service abstract class.
Code
protected function setPath($path) {
if (isset($path) && !empty($path)) {
$trimmed_path = trim($path, '/');
$path = $trimmed_path . '/';
}
return $path;
}