You are here

public function UnsavedIndexConfiguration::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

File

src/UnsavedIndexConfiguration.php, line 417

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function alterIndexedItems(array &$items) {
  $this->entity
    ->alterIndexedItems($items);
}