public function SearchApiAlgoliaBackend::removeIndex in Search API Algolia 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/search_api/backend/SearchApiAlgoliaBackend.php \Drupal\search_api_algolia\Plugin\search_api\backend\SearchApiAlgoliaBackend::removeIndex()
- 3.0.x src/Plugin/search_api/backend/SearchApiAlgoliaBackend.php \Drupal\search_api_algolia\Plugin\search_api\backend\SearchApiAlgoliaBackend::removeIndex()
File
- src/
Plugin/ search_api/ backend/ SearchApiAlgoliaBackend.php, line 207
Class
- SearchApiAlgoliaBackend
- Class SearchApiAlgoliaBackend.
Namespace
Drupal\search_api_algolia\Plugin\search_api\backendCode
public function removeIndex($index) {
// Only delete the index's data if the index isn't read-only.
if (!is_object($index) || empty($index
->get('read_only'))) {
$this
->deleteAllIndexItems($index);
}
}