You are here

public function UnsavedIndexConfiguration::trackItemsDeleted in Search API 8

Deletes items from 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 items IDs.

Overrides IndexInterface::trackItemsDeleted

File

src/UnsavedIndexConfiguration.php, line 592

Class

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

Namespace

Drupal\search_api

Code

public function trackItemsDeleted($datasource_id, array $ids) {
  $this->entity
    ->trackItemsDeleted($datasource_id, $ids);
}