function rpt_user_admin_settings_submit in Registration Password Token 8
Form submission handler for 'user_admin_settings' form.
See also
rpt_form_user_admin_settings_alter()
1 string reference to 'rpt_user_admin_settings_submit'
- rpt_form_user_admin_settings_alter in ./
rpt.module - Implements hook_form_FORM_ID_alter().
File
- ./
rpt.module, line 43 - Registration Password Token module.
Code
function rpt_user_admin_settings_submit($form, FormStateInterface $form_state) {
\Drupal::configFactory()
->getEditable('rpt.settings')
->set('password_generate', $form_state
->getValue('rpt_password_generate'))
->set('password_length', $form_state
->getValue('rpt_password_length'))
->save();
}