You are here

public function LabelLengthLimitForm::submitForm in Override label length limititation 8

Same name and namespace in other branches
  1. 2.0.x src/Form/LabelLengthLimitForm.php \Drupal\label_length_limit\Form\LabelLengthLimitForm::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/LabelLengthLimitForm.php, line 46

Class

LabelLengthLimitForm
Class LabelLengthLimitForm.

Namespace

Drupal\label_length_limit\Form

Code

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