Issue #3412389 by pfrenssen: Document that hook_mail_alter passes a langcode instead of a language object

merge-requests/5389/head^2
Dave Long 2024-01-12 12:53:39 +00:00
parent 0f64637bee
commit c4ae1976de
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
1 changed files with 2 additions and 3 deletions

View File

@ -2042,9 +2042,8 @@ function hook_condition_info_alter(array &$definitions) {
* An array of optional parameters supplied by the caller of
* MailManagerInterface->mail() that is used to build the message before
* hook_mail_alter() is invoked.
* - 'language':
* The language object used to build the message before hook_mail_alter()
* is invoked.
* - 'langcode':
* The langcode used to build the message before invoking hook_mail_alter().
* - 'send':
* Set to FALSE to abort sending this email message.
*