public function SettingsForm::submitForm in JSON:API Include 8
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
- src/
Form/ SettingsForm.php, line 47
Class
- SettingsForm
- Class SettingsForm.
Namespace
Drupal\jsonapi_include\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('jsonapi_include.settings')
->set('use_include_query', $form_state
->getValue('use_include_query'))
->save();
}