You are here

public function NoUi::deleteAllIndexItems in Search API 8

Deletes all the items from the index.

Parameters

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

string|null $datasource_id: (optional) If given, only delete items from the datasource with the given ID.

Throws

\Drupal\search_api\SearchApiException Thrown if an error occurred while trying to delete indexed items.

Overrides BackendSpecificInterface::deleteAllIndexItems

File

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

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 deleteAllIndexItems(IndexInterface $index, $datasource_id = NULL) {
}