You are here

public function TemplatesForm::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/TemplatesForm.php, line 66
Contains \Drupal\easychart\Form\TemplatesForm

Class

TemplatesForm

Namespace

Drupal\easychart\Form

Code

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