You are here

public function ValidatableConfigFormBase::submitForm in CDN 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

cdn_ui/src/Form/ValidatableConfigFormBase.php, line 61

Class

ValidatableConfigFormBase
@todo Lift the config validation logic out of this module into core.

Namespace

Drupal\cdn_ui\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = static::mapFormValuesToConfig($form_state, $this
    ->config(static::getMainConfigName()));
  $config
    ->save();
  parent::submitForm($form, $form_state);
}