You are here

public function JstimerAdminSettings::submitForm in Javascript Timer 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/JstimerAdminSettings.php, line 44
Contains \Drupal\jstimer\Form\JstimerAdminSettings.

Class

JstimerAdminSettings

Namespace

Drupal\jstimer\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = $this->configFactory
    ->getEditable('jstimer.settings');
  $config
    ->save();
  if (method_exists($this, '_submitForm')) {
    $this
      ->_submitForm($form, $form_state);
  }
  parent::submitForm($form, $form_state);
}