function AdvancedSettingsForm::submitForm

Same name and namespace in other branches
  1. 9 core/modules/views_ui/src/Form/AdvancedSettingsForm.php \Drupal\views_ui\Form\AdvancedSettingsForm::submitForm()
  2. 8.9.x core/modules/views_ui/src/Form/AdvancedSettingsForm.php \Drupal\views_ui\Form\AdvancedSettingsForm::submitForm()
  3. 10 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 84

Class

AdvancedSettingsForm
Form builder for the advanced admin settings page.

Namespace

Drupal\views_ui\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    $this->config('views.settings')
        ->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.