public function AdminSettingsForm::submitForm in Acquia Lift Connector 8
Same name and namespace in other branches
- 8.4 src/Form/AdminSettingsForm.php \Drupal\acquia_lift\Form\AdminSettingsForm::submitForm()
- 8.3 src/Form/AdminSettingsForm.php \Drupal\acquia_lift\Form\AdminSettingsForm::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/ AdminSettingsForm.php, line 312 - Contains \Drupal\acquia_lift\Form\AdminSettingsForm.
Class
- AdminSettingsForm
- Defines a form that configures settings.
Namespace
Drupal\acquia_lift\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$settings = $this
->config('acquia_lift.settings');
$values = $form_state
->getValues();
$this
->setCredentialValues($settings, $values['credential']);
$this
->setIdentityValues($settings, $values['identity']);
$this
->setFieldMappingsValues($settings, $values['field_mappings']);
$this
->setVisibilityValues($settings, $values['visibility']);
$settings
->save();
drupal_flush_all_caches();
parent::submitForm($form, $form_state);
}