You are here

function _apigee_edge_existing_developer_mail_tokens in Apigee Edge 8

Token callback to add unsafe tokens for existing developer 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 apigee_edge_mail().

Parameters

array $replacements: An associative array variable containing mappings from token names to values (for use with strtr()).

array $data: An associative array of token replacement values. If the 'user' element exists, it must contain a user account object with the following properties:

  • login: The UNIX timestamp of the user's last login.
  • pass: The hashed account login password.

array $options: A keyed array of settings and flags to control the token replacement process. See \Drupal\Core\Utility\Token::replace().

1 string reference to '_apigee_edge_existing_developer_mail_tokens'
apigee_edge_mail in ./apigee_edge.module
Implements hook_mail().

File

./apigee_edge.module, line 651
Copyright 2018 Google Inc.

Code

function _apigee_edge_existing_developer_mail_tokens(array &$replacements, array $data, array $options) {
  if (isset($data['user'])) {
    $replacements['[user:developer-email-verification-url]'] = _apigee_edge_existing_developer_email_verification_link($data['user'], $options);
  }
}