protected function SearchApiAlgoliaBackend::shouldWaitForDeleteToFinish in Search API Algolia 3.0.x
Wrapper to check if we need to wait for delete operation to finish.
Return value
bool TRUE if we should wait.
2 calls to SearchApiAlgoliaBackend::shouldWaitForDeleteToFinish()
- SearchApiAlgoliaBackend::deleteAllIndexItems in src/
Plugin/ search_api/ backend/ SearchApiAlgoliaBackend.php - SearchApiAlgoliaBackend::deleteItems in src/
Plugin/ search_api/ backend/ SearchApiAlgoliaBackend.php
File
- src/
Plugin/ search_api/ backend/ SearchApiAlgoliaBackend.php, line 877
Class
- SearchApiAlgoliaBackend
- Class SearchApiAlgoliaBackend.
Namespace
Drupal\search_api_algolia\Plugin\search_api\backendCode
protected function shouldWaitForDeleteToFinish() {
static $should_wait = NULL;
if (is_null($should_wait)) {
$should_wait = $this->configFactory
->get('search_api_algolia.settings')
->get('wait_for_delete') ?? FALSE;
}
return $should_wait;
}