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