You are here

public function NoUi::indexItems in Search API 8

Indexes the specified items.

Parameters

\Drupal\search_api\IndexInterface $index: The search index for which items should be indexed.

\Drupal\search_api\Item\ItemInterface[] $items: An array of items to be indexed, keyed by their item IDs.

Return value

string[] The IDs of all items that were successfully indexed.

Throws

\Drupal\search_api\SearchApiException Thrown if indexing was prevented by a fundamental configuration error.

Overrides BackendSpecificInterface::indexItems

File

tests/search_api_test_no_ui/src/Plugin/search_api/backend/NoUi.php, line 23

Class

NoUi
Provides a test backend that should be hidden from the UI.

Namespace

Drupal\search_api_test_no_ui\Plugin\search_api\backend

Code

public function indexItems(IndexInterface $index, array $items) {
  return [];
}