You are here

public function ClaroExtrasSettingsForm::submitForm in Claro Extras 1.0.x

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/ClaroExtrasSettingsForm.php, line 131

Class

ClaroExtrasSettingsForm
Class ClaroExtrasSettingsForm.

Namespace

Drupal\claro_extras\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $values = $form_state
    ->getValues();
  $claro_extras_config = $this
    ->config('claro_extras.settings');
  theme_settings_convert_to_config($values, $claro_extras_config)
    ->save();
}