You are here

public function ServerStatusForm::getServerTaskManager in Search API 8

Retrieves the server task manager.

Return value

\Drupal\search_api\Task\ServerTaskManagerInterface The server task manager.

File

src/Form/ServerStatusForm.php, line 41

Class

ServerStatusForm
Provides a form for performing common actions on a server.

Namespace

Drupal\search_api\Form

Code

public function getServerTaskManager() {
  return $this->serverTaskManager ?: \Drupal::service('search_api.server_task_manager');
}