[REF] Extract function to getDomainTokens
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 9 Sep 2021 06:38:58 +0000 (18:38 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 9 Sep 2021 08:57:31 +0000 (20:57 +1200)
commit60299771a5c60c7625f227fa48d078fe920acecd
tree42768ce9f1538185f21161a858ad5a65c4f121b7
parent60fb93d827eb4d0765a4d1e4865b5fec6ef10bc5
[REF] Extract function to getDomainTokens

This caches the whole token set by domain+locale+html rather than just part.

I am thinking about where this should do - on the BAO_Domain class?
Or on a token processor class (eventually it would only be
called from a token processor class)

Test cover in 'BAO_MessageTemplateTest.testDomainTokens'
CRM/Utils/Token.php
tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php