public function Denormalize::getDenormalizationFields in Search API Grouping 8
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 Denormalize::getDenormalizationFields()
- Denormalize::alterIndexedItems in src/
Plugin/ search_api/ processor/ Denormalize.php - Alter the items to be indexed.
File
- src/
Plugin/ search_api/ processor/ Denormalize.php, line 160
Class
- Denormalize
- This processor allows you to denormalize items.
Namespace
Drupal\search_api_grouping\Plugin\search_api\processorCode
public function getDenormalizationFields() {
$fields =& drupal_static(__FUNCTION__, []);
if (empty($fields)) {
$fields = array_filter($this->configuration['denormalization_field']);
foreach ($fields as $field_name => $field) {
$fields[$field_name] = 0;
if (!empty($this->configuration['permutation_limit'][$field]) && is_numeric($this->configuration['permutation_limit'][$field])) {
$fields[$field_name] = (int) $this->configuration['permutation_limit'][$field];
}
}
}
return $fields;
}