You are here

public function TrumbaConfigurationForm::submitForm in Trumba 2.x

Same name and namespace in other branches
  1. 8 src/Form/TrumbaConfigurationForm.php \Drupal\trumba\Form\TrumbaConfigurationForm::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/TrumbaConfigurationForm.php, line 57

Class

TrumbaConfigurationForm
Class TrumbaConfigurationForm.

Namespace

Drupal\trumba\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $this
    ->config('trumba.trumbaconfiguration')
    ->set('default_web_name', $form_state
    ->getValue('default_web_name'))
    ->save();
}