You are here

public function IndexTaskManager::__construct in Search API 8

Constructs an IndexTaskManager 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/IndexTaskManager.php, line 48

Class

IndexTaskManager
Provides a service for managing pending index 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;
}