public function TestTaskWorker::__construct in Search API 8
Constructs an IndexTaskManager object.
Parameters
\Drupal\search_api\Task\TaskManagerInterface $task_manager: The Search API task manager.
File
- tests/
search_api_test_tasks/ src/ TestTaskWorker.php, line 46
Class
- TestTaskWorker
- Provides a task worker for testing purposes.
Namespace
Drupal\search_api_test_tasksCode
public function __construct(TaskManagerInterface $task_manager) {
$this->taskManager = $task_manager;
}