You are here

public function ServerTaskManager::__construct in Search API 8

Constructs a ServerTaskManager object.

Parameters

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/Task/ServerTaskManager.php, line 43

Class

ServerTaskManager
Provides a service for managing pending server tasks.

Namespace

Drupal\search_api\Task

Code

public function __construct(TaskManagerInterface $task_manager, EntityTypeManagerInterface $entity_type_manager) {
  $this->taskManager = $task_manager;
  $this->entityTypeManager = $entity_type_manager;
}