You are here

public function IndexInterface::trackItemsInserted in Search API 8

Adds items from a specific datasource to the index.

Note that this method receives datasource-specific item IDs as the parameter, not containing the datasource prefix.

Parameters

string $datasource_id: The ID of the datasource to which the items belong.

array $ids: An array of datasource-specific item IDs.

2 methods override IndexInterface::trackItemsInserted()
Index::trackItemsInserted in src/Entity/Index.php
Adds items from a specific datasource to the index.
UnsavedIndexConfiguration::trackItemsInserted in src/UnsavedIndexConfiguration.php
Adds items from a specific datasource to the index.

File

src/IndexInterface.php, line 663

Class

IndexInterface
Defines the interface for index entities.

Namespace

Drupal\search_api

Code

public function trackItemsInserted($datasource_id, array $ids);