By znerol on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.4.x
Introduced in version:
11.4.0
Description:
user_form_process_password_confirm() is deprecated in and is removed from Drupal 13. Use UserThemeHooks::processPasswordConfirm() instead.
Example
Before
#[Hook('element_info_alter')]
public function elementInfoAlter(array &$types): void {
if (isset($types['password_confirm'])) {
$types['password_confirm']['#process'][] = 'user_form_process_password_confirm';
}
}
After
#[Hook('element_info_alter')]
public function elementInfoAlter(array &$types): void {
if (isset($types['password_confirm'])) {
$types['password_confirm']['#process'][] = UserHooks::class . ':processPasswordConfirm';
}
}
Impacts:
Module developers