From: Tim Otten Date: Mon, 9 Aug 2021 23:47:13 +0000 (-0700) Subject: (NFC) MessageTemplate - Add "INTERNAL" disclaimers for messageTemplate and tokenContext X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7a46f8e30b6c1c575f6e15245447e80a4f5a5d37;p=civicrm-core.git (NFC) MessageTemplate - Add "INTERNAL" disclaimers for messageTemplate and tokenContext --- diff --git a/CRM/Core/BAO/MessageTemplate.php b/CRM/Core/BAO/MessageTemplate.php index 15b3012f87..0025b80e54 100644 --- a/CRM/Core/BAO/MessageTemplate.php +++ b/CRM/Core/BAO/MessageTemplate.php @@ -383,12 +383,14 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate { 'messageTemplateID' => NULL, // content of the message template // Ex: ['msg_subject' => 'Hello {contact.display_name}', 'msg_html' => '...', 'msg_text' => '...'] + // INTERNAL: 'messageTemplate' is currently only intended for use within civicrm-core only. For downstream usage, future updates will provide comparable public APIs. 'messageTemplate' => NULL, // contact id if contact tokens are to be replaced 'contactId' => NULL, // additional template params (other than the ones already set in the template singleton) 'tplParams' => [], // additional token params (passed to the TokenProcessor) + // INTERNAL: 'tokenContext' is currently only intended for use within civicrm-core only. For downstream usage, future updates will provide comparable public APIs. 'tokenContext' => [], // the From: header 'from' => NULL,