You are here

public function XmlRpcExampleServerForm::submitForm in xmlrpc 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

xmlrpc_example/src/Form/XmlRpcExampleServerForm.php, line 84

Class

XmlRpcExampleServerForm
Configuration form of the XML-RPC service = UI for the XML-RPC Server part.

Namespace

Drupal\xmlrpc_example\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('xmlrpc_example.server')
    ->set('min', $form_state
    ->getValue('min'))
    ->set('max', $form_state
    ->getValue('max'))
    ->save();
  parent::submitForm($form, $form_state);
}