public function ServerStatusForm::executeTasks in Search API 8
File
- src/
Form/ ServerStatusForm.php, line 107
Class
- ServerStatusForm
- Provides a form for performing common actions on a server.
Namespace
Drupal\search_api\FormCode
public function executeTasks(array &$form, FormStateInterface $form_state) {
/** @var \Drupal\search_api\ServerInterface $server */
$server = $form['#server'];
$this
->getServerTaskManager()
->setExecuteBatch($server);
}