You are here

public function IndexingItemsEvent::__construct in Search API 8

Constructs a new class instance.

Parameters

\Drupal\search_api\IndexInterface $index: The index on which items will be indexed.

\Drupal\search_api\Item\ItemInterface[] $items: The items that will be indexed.

File

src/Event/IndexingItemsEvent.php, line 35

Class

IndexingItemsEvent
Wraps an indexing items event.

Namespace

Drupal\search_api\Event

Code

public function __construct(IndexInterface $index, array $items) {
  $this->index = $index;
  $this->items = $items;
}