set default langcode for message

Created on 25 April 2025, 4 months ago

The message passed in to tfa_email_otp_mail() may not have a langcode specified. This caused a problem in another module making unwarranted assumptions, so I think it's probably not a bug here. But it would prevent issues to default to something.

I added code to get it from $language. It could probably also just default to LanguageInterface::LANGCODE_NOT_SPECIFIED.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States brad.bulger

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024