public function FilebrowserConfigForm::submitForm in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 src/Form/FilebrowserConfigForm.php \Drupal\filebrowser\Form\FilebrowserConfigForm::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/ FilebrowserConfigForm.php, line 51
Class
Namespace
Drupal\filebrowser\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_values = $form_state
->getValue('filebrowser');
\Drupal::configFactory()
->getEditable('filebrowser.settings')
->set('filebrowser', $form_values)
->save();
parent::submitForm($form, $form_state);
}