Document that hook_mail_alter passes a langcode instead of a language object

Created on 4 January 2024, 12 months ago
Updated 26 January 2024, 11 months ago

Problem/Motivation

In D8 we adopted the use of langcodes to indicate the language of an email (ref drupal_mail(), hook_mail() and hook_mail_alter() now take langcode instead of language objects β†’ ), but we never got round to updating the documentation of hook_mail_alter() to reflect this change. It still mentions the use of language objects.

Since the mail system is being deprecated in 🌱 [META] Adopt the symfony mailer component Needs review this is a minor issue, but it is still be a good idea to update the documentation because the current mail system will be around until Drupal 12 is release (or possibly longer).

πŸ“Œ Task
Status

Fixed

Version

10.2 ✨

Component
DocumentationΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡§πŸ‡¬Bulgaria pfrenssen Sofia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024