Move getCustomFieldTokens to the tokens class
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 29 Sep 2021 04:44:32 +0000 (17:44 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 7 Oct 2021 19:37:02 +0000 (08:37 +1300)
commit3232ec1374696a4376a7fd65d6959f3596b6d3ec
tree539d850e6531fa71c5a3190b9eaf24930961fd4f
parentbb6fc750f0471fa621d170f31cce387ca6152060
Move getCustomFieldTokens to the tokens class

This deprecates (quietly) another function on CRM_Utils_Token. It's a pretty small function -
the sort you'd just copy & paste if you wanted to use outside of core but
I didn't add noise. The only core place that calls this is the tokenTrait
- which is 'used' by activity tokens - but only for the handling of _N_
which I think was actually not supposed to have been included in the merge.

Anyway - I'm leaving that question for later because I'm not sure if the token
trait is used outside of core or how our final interface will look
CRM/Core/TokenTrait.php
CRM/Utils/Token.php