public function IndexForm::submitAjaxTrackerConfigForm in Search API 8
Form submission handler for buildEntityForm().
Takes care of changes in the selected tracker plugin.
Parameters
array $form: The current form array.
\Drupal\Core\Form\FormStateInterface $form_state: The current form state.
File
- src/
Form/ IndexForm.php, line 479
Class
- IndexForm
- Provides a form for the Index entity.
Namespace
Drupal\search_api\FormCode
public function submitAjaxTrackerConfigForm(array $form, FormStateInterface $form_state) {
$form_state
->setValue('id', NULL);
$form_state
->setRebuild();
}