public function EditTexts::submitForm in TacJS 8.3
Same name and namespace in other branches
- 8.6 src/Form/Steps/EditTexts.php \Drupal\tacjs\Form\Steps\EditTexts::submitForm()
- 8.2 src/Form/Steps/EditTexts.php \Drupal\tacjs\Form\Steps\EditTexts::submitForm()
- 8.4 src/Form/Steps/EditTexts.php \Drupal\tacjs\Form\Steps\EditTexts::submitForm()
- 8.5 src/Form/Steps/EditTexts.php \Drupal\tacjs\Form\Steps\EditTexts::submitForm()
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/ Steps/ EditTexts.php, line 342
Class
- EditTexts
- Class EditTexts.
Namespace
Drupal\tacjs\Form\StepsCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('tacjs.settings');
$config
->set('texts.middleBarHead', $form_state
->getValue('middleBarHead'))
->set('texts.adblock', $form_state
->getValue('adblock'))
->set('texts.adblock_call', $form_state
->getValue('adblock_call'))
->set('texts.reload', $form_state
->getValue('reload'))
->set('texts.alertBigScroll', $form_state
->getValue('alertBigScroll'))
->set('texts.alertBigClick', $form_state
->getValue('alertBigClick'))
->set('texts.alertBig', $form_state
->getValue('alertBig'))
->set('texts.alertBigPrivacy', $form_state
->getValue('alertBigPrivacy'))
->set('texts.alertSmall', $form_state
->getValue('alertSmall'))
->set('texts.personalize', $form_state
->getValue('personalize'))
->set('texts.acceptAll', $form_state
->getValue('acceptAll'))
->set('texts.close', $form_state
->getValue('close'))
->set('texts.privacyUrl', $form_state
->getValue('privacyUrl'))
->set('texts.all', $form_state
->getValue('all'))
->set('texts.info', $form_state
->getValue('info'))
->set('texts.disclaimer', $form_state
->getValue('disclaimer'))
->set('texts.allow', $form_state
->getValue('allow'))
->set('texts.deny', $form_state
->getValue('deny'))
->set('texts.noCookie', $form_state
->getValue('noCookie'))
->set('texts.useCookie', $form_state
->getValue('useCookie'))
->set('texts.useCookieCurrent', $form_state
->getValue('useCookieCurrent'))
->set('texts.useNoCookie', $form_state
->getValue('useNoCookie'))
->set('texts.more', $form_state
->getValue('more'))
->set('texts.source', $form_state
->getValue('source'))
->set('texts.credit', $form_state
->getValue('credit'))
->set('texts.noServices', $form_state
->getValue('noServices'))
->set('texts.toggleInfoBox', $form_state
->getValue('toggleInfoBox'))
->set('texts.title', $form_state
->getValue('title'))
->set('texts.cookieDetail', $form_state
->getValue('cookieDetail'))
->set('texts.ourSite', $form_state
->getValue('ourSite'))
->set('texts.newWindow', $form_state
->getValue('newWindow'))
->set('texts.allowAll', $form_state
->getValue('allowAll'))
->set('texts.denyAll', $form_state
->getValue('denyAll'))
->set('texts.fallback', $form_state
->getValue('fallback'))
->set('texts.ads.title', $form_state
->getValue('ads_title'))
->set('texts.ads.details', $form_state
->getValue('ads_details'))
->set('texts.analytic.title', $form_state
->getValue('analytic_title'))
->set('texts.analytic.details', $form_state
->getValue('analytic_details'))
->set('texts.social.title', $form_state
->getValue('social_title'))
->set('texts.social.details', $form_state
->getValue('social_details'))
->set('texts.video.title', $form_state
->getValue('video_title'))
->set('texts.video.details', $form_state
->getValue('video_details'))
->set('texts.comment.title', $form_state
->getValue('comment_title'))
->set('texts.comment.details', $form_state
->getValue('comment_details'))
->set('texts.support.title', $form_state
->getValue('support_title'))
->set('texts.support.details', $form_state
->getValue('support_details'))
->set('texts.api.title', $form_state
->getValue('api_title'))
->set('texts.api.details', $form_state
->getValue('api_details'))
->set('texts.other.title', $form_state
->getValue('other_title'))
->set('texts.other.details', $form_state
->getValue('other_details'))
->save();
parent::submitForm($form, $form_state);
}