You are here

public function TaskController::setTaskManager in Search API 8

Sets the task manager.

Parameters

\Drupal\search_api\Task\TaskManagerInterface $task_manager: The new task manager.

Return value

$this

File

src/Controller/TaskController.php, line 54

Class

TaskController
Returns responses for task-related routes.

Namespace

Drupal\search_api\Controller

Code

public function setTaskManager(TaskManagerInterface $task_manager) {
  $this->taskManager = $task_manager;
  return $this;
}