You are here

public function StreamingExpressionBuilder::_all_fields_list in Search API Solr 8.2

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

Formats the list of all Search API fields as a string of Solr field names.

Parameters

string $delimiter:

bool $include_sorts:

array $blacklist:

Return value

string A list of all Solr field names for the index.

File

src/Utility/StreamingExpressionBuilder.php, line 191

Class

StreamingExpressionBuilder
Provides methods for creating streaming expressions targeting a given index.

Namespace

Drupal\search_api_solr\Utility

Code

public function _all_fields_list(string $delimiter = ',', bool $include_sorts = TRUE, array $blacklist = []) {
  return implode($delimiter, array_diff_key($include_sorts ? array_merge($this->all_fields_mapped, $this->sort_fields) : $this->all_fields_mapped, array_flip($blacklist)));
}