public function SettingDisableLinkRel::submitForm in Disable link rel 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/ SettingDisableLinkRel.php, line 72
Class
- SettingDisableLinkRel
- Class ImportContactForm.
Namespace
Drupal\disable_link_rel\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$config = $this
->config('disable_link_rel.import');
$config
->set('enable', $form_state
->getValue('enable'));
$config
->set('links', $form_state
->getValue('links'));
$config
->set('remove_link_attr', $form_state
->getValue('remove_link_attr'));
$config
->set('remove_link_attr_list', $form_state
->getValue('remove_link_attr_list'));
$config
->save();
if ($form_state
->getValue('cach_clear', FALSE)) {
drupal_flush_all_caches();
}
}