protected function Denormalize::testType in Search API Grouping 8
Determines whether a field of a certain type should be preprocessed.
The default implementation returns TRUE for "text" and "string".
Parameters
string $type: The type of the field (either when preprocessing the field at index time, or a condition on the field at query time).
Return value
bool TRUE if fields of that type should be processed, FALSE otherwise.
Overrides FieldsProcessorPluginBase::testType
File
- src/
Plugin/ search_api/ processor/ Denormalize.php, line 196
Class
- Denormalize
- This processor allows you to denormalize items.
Namespace
Drupal\search_api_grouping\Plugin\search_api\processorCode
protected function testType($type) {
return $this
->getDataTypeHelper()
->isTextType($type, [
'text',
'string',
'integer',
]);
}