You are here

public function IndexTaskManager::addItemsBatch in Search API 8

Sets a batch to track all remaining items for the given index.

Parameters

\Drupal\search_api\IndexInterface $index: The search index.

Overrides IndexTaskManagerInterface::addItemsBatch

File

src/Task/IndexTaskManager.php, line 204

Class

IndexTaskManager
Provides a service for managing pending index tasks.

Namespace

Drupal\search_api\Task

Code

public function addItemsBatch(IndexInterface $index) {
  $this->taskManager
    ->setTasksBatch($this
    ->getTaskConditions($index));
}