By longwave on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.2.x
Introduced in version:
9.2.0
Issue links:
Description:
The $langcode argument to _user_mail_notify() is no longer required. Simply omit the argument, the preferred language of the account will be used automatically.
Before:
$mail = _user_mail_notify('password_reset', $account, $account->getPreferredLangcode());
After:
$mail = _user_mail_notify('password_reset', $account);
Impacts:
Module developers