You are here

public static function DenormalizedEntityIndexHijack::getGroupingProcessorFields in Search API Grouping 7.2

Returns the fields to denormalize on.

Parameters

SearchApiIndex $index: The index to fetch the configuration from.

Return value

array The list of fields to use for denormalization.

1 call to DenormalizedEntityIndexHijack::getGroupingProcessorFields()
search_api_grouping_search_api_solr_field_mapping_alter in ./search_api_grouping.module
Implements hook_search_api_solr_field_mapping_alter().

File

includes/datasource_denormalized_entity.inc, line 588
Contains the SearchApiDenormalizedEntityDataSourceController class.

Class

DenormalizedEntityIndexHijack
Class to hijack the protected method getProcessors().

Code

public static function getGroupingProcessorFields(SearchApiIndex $index) {
  $processors = $index
    ->getProcessors();
  if (!empty($processors['search_api_denormalized_entity_grouping'])) {
    return $processors['search_api_denormalized_entity_grouping']
      ->getGroupingFields();
  }
  return array();
}