You are here

public function SavedSearchTypeForm::submitAjaxNotificationPluginConfigForm in Search API Saved Searches 8

Form submission handler for buildEntityForm().

Takes care of changes in the selected notification plugins.

Parameters

array $form: The current form array.

\Drupal\Core\Form\FormStateInterface $form_state: The current form state.

File

src/Form/SavedSearchTypeForm.php, line 442

Class

SavedSearchTypeForm
Provides a form for adding and editing saved search types.

Namespace

Drupal\search_api_saved_searches\Form

Code

public function submitAjaxNotificationPluginConfigForm(array $form, FormStateInterface $form_state) {
  $form_state
    ->setValue('id', NULL);
  $form_state
    ->setRebuild();
}