You are here

public function XBBCodeHandlerForm::submitForm in Extensible BBCode 8.2

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/XBBCodeHandlerForm.php, line 140
Contains \Drupal\xbbcode\Form\XBBCodeTagForm.

Class

XBBCodeHandlerForm

Namespace

Drupal\xbbcode\Form

Code

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