You are here

public function PersianToolsAdminForm::submitForm in PersianTools 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/PersianToolsAdminForm.php, line 70

Class

PersianToolsAdminForm

Namespace

Drupal\persiantools\Form

Code

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