You are here

public function SettingsForm::submitForm in Cloud Zoom 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 48

Class

SettingsForm
Configure site information settings for this site.

Namespace

Drupal\cloud_zoom\Form

Code

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