public function GatsbyInstantPreviewAdminForm::submitForm in Gatsby Live Preview & Incremental Builds 8
Same name and namespace in other branches
- 2.0.x modules/gatsby_instantpreview/src/Form/GatsbyInstantPreviewAdminForm.php \Drupal\gatsby_instantpreview\Form\GatsbyInstantPreviewAdminForm::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 GatsbyAdminForm::submitForm
File
- modules/
gatsby_instantpreview/ src/ Form/ GatsbyInstantPreviewAdminForm.php, line 43
Class
- GatsbyInstantPreviewAdminForm
- Class GatsbyAdminForm.
Namespace
Drupal\gatsby_instantpreview\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('gatsby.settings')
->set('secret_key', $form_state
->getValue('secret_key'))
->save();
}