function SiteConfigureForm::validateForm
Overrides FormBase::validateForm
File
- 
              core/lib/ Drupal/ Core/ Installer/ Form/ SiteConfigureForm.php, line 266 
Class
- SiteConfigureForm
- Provides the site configuration form.
Namespace
Drupal\Core\Installer\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
  if ($error = user_validate_name($form_state->getValue([
    'account',
    'name',
  ]))) {
    $form_state->setErrorByName('account][name', $error);
  }
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
