public function SettingsForm::submitForm in Paragraphs Features 8
Same name and namespace in other branches
- 2.x src/Form/SettingsForm.php \Drupal\paragraphs_features\Form\SettingsForm::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
- src/
Form/ SettingsForm.php, line 47
Class
- SettingsForm
- Settings form for paragraphs_features.
Namespace
Drupal\paragraphs_features\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('paragraphs_features.settings')
->set('dropdown_to_button', $form_state
->getValue('dropdown_to_button'))
->save();
}