public function AdvancedSettingsForm::submitForm in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views_ui/src/Form/AdvancedSettingsForm.php \Drupal\views_ui\Form\AdvancedSettingsForm::submitForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ConfigFormBase::submitForm
File
- core/
modules/ views_ui/ src/ Form/ AdvancedSettingsForm.php, line 91
Class
- AdvancedSettingsForm
- Form builder for the advanced admin settings page.
Namespace
Drupal\views_ui\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('views.settings')
->set('skip_cache', $form_state
->getValue('skip_cache'))
->set('sql_signature', $form_state
->getValue('sql_signature'))
->set('display_extenders', $form_state
->getValue('display_extenders', []))
->save();
parent::submitForm($form, $form_state);
}