You are here

public function RedhenAdminSettingsForm::submitForm in RedHen CRM 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/RedhenAdminSettingsForm.php, line 51

Class

RedhenAdminSettingsForm
Configure Redhen settings for this site.

Namespace

Drupal\redhen\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = $this
    ->config('redhen.settings');
  $config
    ->set('redhen_admin_path', $form_state
    ->getValue('redhen_admin_path'))
    ->save();
  parent::submitForm($form, $form_state);
}