user_mail_tokens

function user_mail_tokens

user_mail_tokens(&$replacements, $data, $options)

Token callback to add unsafe tokens for user mails.

This function is used by \Drupal\Core\Utility\Token::replace() to set up some additional tokens that can be used in email messages generated by user_mail().

Parameters

array $replacements: An associative array variable containing mappings from token names to values (for use with 登录查看完整内容