protected function SearchApiAbstractProcessor::testType in Search API 7
Determines whether fields of the given type should normally be processed.
Defaults to processing text types, but can easily be overridden by subclasses.
Return value
bool TRUE, if the type should be processed, FALSE otherwise.
1 call to SearchApiAbstractProcessor::testType()
- SearchApiAbstractProcessor::testField in includes/
processor.inc - Determines whether to process data from the given field.
File
- includes/
processor.inc, line 419 - Contains SearchApiProcessorInterface and SearchApiAbstractProcessor.
Class
- SearchApiAbstractProcessor
- Abstract processor implementation that provides an easy framework for only processing specific fields.
Code
protected function testType($type) {
return search_api_is_text_type($type, array(
'text',
'tokens',
));
}