public function IndexTaskManager::addItemsOnce in Search API 8
Adds a single page of items to the tracker.
Parameters
\Drupal\search_api\IndexInterface $index: The search index.
Return value
bool TRUE if tracking for this index has been finished, FALSE otherwise.
Throws
\Drupal\search_api\SearchApiException Thrown if any error occurred while tracking items.
Overrides IndexTaskManagerInterface::addItemsOnce
File
- src/
Task/ IndexTaskManager.php, line 197
Class
- IndexTaskManager
- Provides a service for managing pending index tasks.
Namespace
Drupal\search_api\TaskCode
public function addItemsOnce(IndexInterface $index) {
return !$this->taskManager
->executeSingleTask($this
->getTaskConditions($index));
}