You are here

public function ContentEntityTaskManager::__construct in Search API 8

Constructs a ContentEntityTaskManager 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/Plugin/search_api/datasource/ContentEntityTaskManager.php, line 49

Class

ContentEntityTaskManager
Provides a service for managing pending tracking tasks for datasources.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

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