You are here

public function SearchApiDenormalizedEntityField::getDenormalizationFields in Search API Grouping 7.2

Returns the fields to denormalize on.

Return value

array Associative list of fields to use for denormalization. The value in the array defines the permutation limit. 0 means no limit.

1 call to SearchApiDenormalizedEntityField::getDenormalizationFields()
SearchApiDenormalizedEntityField::createDocument in includes/processor_denormalize_field.inc
Create a denormalized item for indexing.

File

includes/processor_denormalize_field.inc, line 87
Processor for configuring the denormalization per index.

Class

SearchApiDenormalizedEntityField
Processor to configure and handle the denormalization per index.

Code

public function getDenormalizationFields() {
  $fields =& drupal_static(__FUNCTION__, array());
  if (empty($fields)) {
    $fields = array_filter($this->options['denormalization_field']);
    foreach ($fields as $field_name => $field) {
      $fields[$field_name] = 0;
      if (!empty($this->options['permutation_limit'][$field]) && is_numeric($this->options['permutation_limit'][$field])) {
        $fields[$field_name] = (int) $this->options['permutation_limit'][$field];
      }
    }
  }
  return $fields;
}