You are here

public function RiddleIntegration::submitForm in Thunder 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/Thunder/OptionalModule/RiddleIntegration.php \Drupal\thunder\Plugin\Thunder\OptionalModule\RiddleIntegration::submitForm()
  2. 8.4 src/Plugin/Thunder/OptionalModule/RiddleIntegration.php \Drupal\thunder\Plugin\Thunder\OptionalModule\RiddleIntegration::submitForm()

Overrides AbstractOptionalModule::submitForm

File

src/Plugin/Thunder/OptionalModule/RiddleIntegration.php, line 39

Class

RiddleIntegration
Riddle integration.

Namespace

Drupal\thunder\Plugin\Thunder\OptionalModule

Code

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