public function UnsavedIndexConfiguration::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.
Overrides IndexInterface::trackItemsInserted
File
- src/
UnsavedIndexConfiguration.php, line 578
Class
- UnsavedIndexConfiguration
- Represents a configuration of an index that was not yet permanently saved.
Namespace
Drupal\search_apiCode
public function trackItemsInserted($datasource_id, array $ids) {
$this->entity
->trackItemsInserted($datasource_id, $ids);
}