Convert token processing to use token processor for contacts
authoreileen <emcnaughton@wikimedia.org>
Sat, 6 Feb 2021 03:36:45 +0000 (16:36 +1300)
committereileen <emcnaughton@wikimedia.org>
Sat, 27 Mar 2021 00:49:02 +0000 (13:49 +1300)
commit49ab56aef758276e41f1950fe76439613f408eb6
treef984bbbeefa5119c7df6c9aced75c4d6bd562586
parentb190ef9cca2c2ba0bab7da22a89a6e74395c4502
Convert token processing to use token processor for contacts

Note this will test fail on 3 things that worked with the other. The way in
which we load tokens means that some values have been exposed that
possibly would be better not exposed - but we can either remove them
from advertised tokens, fix the tokenCompat class to support them
or possibly deprecate by removing from the UI display but
continuing to handle. One notable difference is the contact_reference
entity id.
CRM/Core/BAO/MessageTemplate.php
tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php