You are here

public function PresetsForm::submitForm in Easychart 8.3

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/PresetsForm.php, line 62
Contains \Drupal\easychart\Form\PresetsForm

Class

PresetsForm

Namespace

Drupal\easychart\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $values = $form_state
    ->getValues();
  $this
    ->config('easychart.settings')
    ->set('presets', $values['presets'])
    ->save();
}