You are here

public function CamiSettingsForm::submitForm in Custom Active Menu Item 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/CamiSettingsForm.php, line 51

Class

CamiSettingsForm
Configure cami settings.

Namespace

Drupal\cami\Form

Code

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