public function TaskController::getTaskManager in Search API 8
Retrieves the task manager.
Return value
\Drupal\search_api\Task\TaskManagerInterface The task manager.
File
- src/
Controller/ TaskController.php, line 42
Class
- TaskController
- Returns responses for task-related routes.
Namespace
Drupal\search_api\ControllerCode
public function getTaskManager() {
return $this->taskManager ?: \Drupal::service('search_api._task_manager');
}