You are here

public function IndexStatusForm::getIndexTaskManager in Search API 8

Retrieves the index task manager.

Return value

\Drupal\search_api\Task\IndexTaskManagerInterface The index task manager.

File

src/Form/IndexStatusForm.php, line 58

Class

IndexStatusForm
Provides a form for indexing, clearing, etc., an index.

Namespace

Drupal\search_api\Form

Code

public function getIndexTaskManager() {
  return $this->indexTaskManager ?: \Drupal::service('search_api.index_task_manager');
}