public function XmlRpcExampleAlterForm::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/ XmlRpcExampleAlterForm.php, line 62
Class
- XmlRpcExampleAlterForm
- Presents a form to enable/disable the code implemented in hook_xmlrpc_alter.
Namespace
Drupal\xmlrpc_example\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('xmlrpc_example.server')
->set('alter_enabled', $form_state
->getValue('alter_enabled'))
->save();
parent::submitForm($form, $form_state);
}