You are here

public function IndexTaskManagerInterface::startTracking in Search API 8

Creates a task to start tracking for the given index, or some datasources.

Parameters

\Drupal\search_api\IndexInterface $index: The search index.

string[]|null $datasource_ids: (optional) The IDs of specific datasources for which tracking should start. Or NULL to start tracking for all datasources.

1 method overrides IndexTaskManagerInterface::startTracking()
IndexTaskManager::startTracking in src/Task/IndexTaskManager.php
Creates a task to start tracking for the given index, or some datasources.

File

src/Task/IndexTaskManagerInterface.php, line 21

Class

IndexTaskManagerInterface
Defines the interface for the index task manager.

Namespace

Drupal\search_api\Task

Code

public function startTracking(IndexInterface $index, array $datasource_ids = NULL);