public function Grouping::getGroupingFields in Search API Grouping 8
Returns the fields to group on.
Return value
array The list of fields to use for grouping.
1 call to Grouping::getGroupingFields()
- Grouping::preprocessSearchQuery in src/
Plugin/ search_api/ processor/ Grouping.php - Preprocesses a search query.
File
- src/
Plugin/ search_api/ processor/ Grouping.php, line 170
Class
- Grouping
- Processor for grouping up items on behalf of user defined fields.
Namespace
Drupal\search_api_grouping\Plugin\search_api\processorCode
public function getGroupingFields() {
$fields = $this->configuration['grouping_fields'];
foreach ($fields as $key => $field) {
if ($field === 0) {
unset($fields[$key]);
}
}
return $fields;
}