public function SearchApiAbstractService::removeIndex in Search API 7
Implements SearchApiServiceInterface::__construct().
By default, removes all items from that index.
Overrides SearchApiServiceInterface::removeIndex
2 calls to SearchApiAbstractService::removeIndex()
- SearchApiAbstractService::preDelete in includes/
service.inc - Implements SearchApiServiceInterface::__construct().
- SearchApiTestService::removeIndex in tests/
search_api_test.module - Implements SearchApiServiceInterface::__construct().
1 method overrides SearchApiAbstractService::removeIndex()
- SearchApiTestService::removeIndex in tests/
search_api_test.module - Implements SearchApiServiceInterface::__construct().
File
- includes/
service.inc, line 458 - Contains SearchApiServiceInterface and SearchApiAbstractService.
Class
- SearchApiAbstractService
- Abstract class with generic implementation of most service methods.
Code
public function removeIndex($index) {
if (is_object($index) && empty($index->read_only)) {
$this
->deleteItems('all', $index);
}
}