Deprecate `replaceEntityTokens`, stop using in core
replaceEntityTokens
has only one usage in core - in pdf letter from a membership search. If we can migrate that to a token processor we can add deprecated to the function
(There are a few uses outside core so will leave a noisy deprecation until bedded in)
-
Add test cover for legacy tokens https://github.com/civicrm/civicrm-core/pull/21453 -
Add support for new unambigous tokens to legacy https://github.com/civicrm/civicrm-core/pull/21453 -
check if we have test cover for the tokens in scheduled reminders https://github.com/civicrm/civicrm-core/pull/21454 -
fix CRM_Member_Tokens to extend EntityTokens with tests ^^ demonstrating it works (minimum change to extend) -
add test cover for using CRM_Member_Tokens with 'listening' https://github.com/civicrm/civicrm-core/pull/21506 -
Fix pdf letter to use token processor, add deprecation annotation to replaceEntityTokens