You are here

public function SearchApiAbstractProcessor::preprocessIndexItems in Search API 7

Calls processField() for all appropriate fields.

Overrides SearchApiProcessorInterface::preprocessIndexItems

File

includes/processor.inc, line 208
Contains SearchApiProcessorInterface and SearchApiAbstractProcessor.

Class

SearchApiAbstractProcessor
Abstract processor implementation that provides an easy framework for only processing specific fields.

Code

public function preprocessIndexItems(array &$items) {
  foreach ($items as &$item) {
    foreach ($item as $name => &$field) {
      if ($this
        ->testField($name, $field)) {
        $this
          ->processField($field['value'], $field['type']);
      }
    }
  }
}