function AdvancedSettingsForm::submitForm
Same name in other branches
- 8.9.x core/modules/views_ui/src/Form/AdvancedSettingsForm.php \Drupal\views_ui\Form\AdvancedSettingsForm::submitForm()
- 10 core/modules/views_ui/src/Form/AdvancedSettingsForm.php \Drupal\views_ui\Form\AdvancedSettingsForm::submitForm()
- 11.x core/modules/views_ui/src/Form/AdvancedSettingsForm.php \Drupal\views_ui\Form\AdvancedSettingsForm::submitForm()
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.