public function Index::preprocessIndexItems in Search API 8
Preprocesses data items for indexing.
Lets all enabled processors for this index preprocess the indexed data.
Parameters
\Drupal\search_api\Item\ItemInterface[] $items: An array of items to be preprocessed for indexing.
Overrides IndexInterface::preprocessIndexItems
1 call to Index::preprocessIndexItems()
- Index::indexSpecificItems in src/
Entity/ Index.php - Indexes some objects on this index.
File
- src/
Entity/ Index.php, line 655
Class
- Index
- Defines the search index configuration entity.
Namespace
Drupal\search_api\EntityCode
public function preprocessIndexItems(array $items) {
foreach ($this
->getProcessorsByStage(ProcessorInterface::STAGE_PREPROCESS_INDEX) as $processor) {
$processor
->preprocessIndexItems($items);
}
}