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 #1803948: [META] Adopt the symfony mailer component 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).

Issue fork drupal-3412389

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pfrenssen created an issue. See original summary.

pfrenssen’s picture

Status: Active » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Change seems fine to me. Least reads ok.

  • longwave committed 23a1308b on 10.2.x
    Issue #3412389 by pfrenssen: Document that hook_mail_alter passes a...

  • longwave committed c4ae1976 on 11.x
    Issue #3412389 by pfrenssen: Document that hook_mail_alter passes a...
longwave’s picture

Version: 11.x-dev » 10.2.x-dev
Status: Reviewed & tested by the community » Fixed

Backported as a docs fix to 10.2.x.

Committed and pushed to 11.x and 10.2.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.