You are here

public function HtmlTitleSettingConfigForm::submitForm in HTML Title 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/HtmlTitleSettingConfigForm.php, line 49

Class

HtmlTitleSettingConfigForm
Class HtmlTitleSettingConfigForm.

Namespace

Drupal\html_title\Form

Code

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