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