You are here

public function MiconLocalTaskConfigForm::submitForm in Micon 8

Same name and namespace in other branches
  1. 2.x micon_local_task/src/Form/MiconLocalTaskConfigForm.php \Drupal\micon_local_task\Form\MiconLocalTaskConfigForm::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

micon_local_task/src/Form/MiconLocalTaskConfigForm.php, line 48

Class

MiconLocalTaskConfigForm
Class MiconLocalTaskConfigForm.

Namespace

Drupal\micon_local_task\Form

Code

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