You are here

public function FilebrowserConfigForm::submitForm in Filebrowser 8.2

Same name and namespace in other branches
  1. 3.x 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

FilebrowserConfigForm

Namespace

Drupal\filebrowser\Form

Code

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);
}