function contact_form_user_admin_settings_submit

Same name and namespace in other branches
  1. 10 core/modules/contact/contact.module \contact_form_user_admin_settings_submit()
  2. 9 core/modules/contact/contact.module \contact_form_user_admin_settings_submit()
  3. 8.9.x core/modules/contact/contact.module \contact_form_user_admin_settings_submit()
  4. main core/modules/contact/contact.module \contact_form_user_admin_settings_submit()

Form submission handler for \Drupal\user\AccountSettingsForm.

Deprecated

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\contact\Hook\ContactFormHooks::userAdminSettingsSubmit instead.

See also

https://www.drupal.org/node/3566774

File

core/modules/contact/contact.module, line 33

Code

function contact_form_user_admin_settings_submit($form, FormStateInterface $form_state) : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use \\Drupal\\contact\\Hook\\ContactFormHooks::userAdminSettingsSubmit instead. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
  \Drupal::service(ContactFormHooks::class)->userAdminSettingsSubmit($form, $form_state);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.