public function AppSettingsForm::submitForm in Apigee Edge 8
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/ AppSettingsForm.php, line 206
Class
- AppSettingsForm
- Configuration form builder for general app settings.
Namespace
Drupal\apigee_edge\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('apigee_edge.common_app_settings')
->set('multiple_products', $form_state
->getValue('multiple_products'))
->set('display_as_select', $form_state
->getValue('display_as_select'))
->set('user_select', $form_state
->getValue('user_select'))
->set('default_products', array_values(array_filter($form_state
->getValue('default_api_product_multiple'))))
->save();
parent::submitForm($form, $form_state);
}