public function IndexTaskManager::isTrackingComplete in Search API 8
Checks whether tracking has already been completed for the given index.
Parameters
\Drupal\search_api\IndexInterface $index: The search index.
Return value
bool TRUE if tracking has been completed for the given index, FALSE otherwise.
Overrides IndexTaskManagerInterface::isTrackingComplete
File
- src/
Task/ IndexTaskManager.php, line 249
Class
- IndexTaskManager
- Provides a service for managing pending index tasks.
Namespace
Drupal\search_api\TaskCode
public function isTrackingComplete(IndexInterface $index) {
return !$this->taskManager
->getTasksCount($this
->getTaskConditions($index));
}