public function GoogleAnalytics::submitForm in Thunder 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/Thunder/OptionalModule/GoogleAnalytics.php \Drupal\thunder\Plugin\Thunder\OptionalModule\GoogleAnalytics::submitForm()
- 8.4 src/Plugin/Thunder/OptionalModule/GoogleAnalytics.php \Drupal\thunder\Plugin\Thunder\OptionalModule\GoogleAnalytics::submitForm()
Overrides AbstractOptionalModule::submitForm
File
- src/
Plugin/ Thunder/ OptionalModule/ GoogleAnalytics.php, line 46
Class
- GoogleAnalytics
- Google Analytics.
Namespace
Drupal\thunder\Plugin\Thunder\OptionalModuleCode
public function submitForm(array $formValues) {
$this->configFactory
->getEditable('google_analytics.settings')
->set('account', (string) $formValues['ga_account'])
->save(TRUE);
}