You are here

public function GoogleAnalytics::submitForm in Thunder 8.4

Same name and namespace in other branches
  1. 8.2 src/Plugin/Thunder/OptionalModule/GoogleAnalytics.php \Drupal\thunder\Plugin\Thunder\OptionalModule\GoogleAnalytics::submitForm()
  2. 8.3 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\OptionalModule

Code

public function submitForm(array $formValues) {
  $this->configFactory
    ->getEditable('google_analytics.settings')
    ->set('account', (string) $formValues['ga_account'])
    ->save(TRUE);
}