You are here

public function TaskController::executeTasks in Search API 8

Executes all pending tasks.

1 string reference to 'TaskController::executeTasks'
search_api.routing.yml in ./search_api.routing.yml
search_api.routing.yml

File

src/Controller/TaskController.php, line 62

Class

TaskController
Returns responses for task-related routes.

Namespace

Drupal\search_api\Controller

Code

public function executeTasks() {
  $this
    ->getTaskManager()
    ->setTasksBatch();
  return batch_process(Url::fromRoute('search_api.overview'));
}