public function ServerTaskManager::setExecuteBatch in Search API 8
Sets a batch for executing server tasks.
Parameters
\Drupal\search_api\ServerInterface|null $server: (optional) The server whose tasks should be executed. If not given, the tasks for all enabled servers are executed.
Overrides ServerTaskManagerInterface::setExecuteBatch
File
- src/
Task/ ServerTaskManager.php, line 185
Class
- ServerTaskManager
- Provides a service for managing pending server tasks.
Namespace
Drupal\search_api\TaskCode
public function setExecuteBatch(ServerInterface $server = NULL) {
$this->taskManager
->setTasksBatch($this
->getTaskConditions($server));
}