Standardise listTokens in email & pdf
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 1 Oct 2021 23:05:37 +0000 (12:05 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 5 Oct 2021 06:52:52 +0000 (19:52 +1300)
commit601c941f2f33273aaa6ff1f38ef10df281fef816
tree9cfc78878a440f4dd56605d32e9911d4a61ac3ef
parent3e2bee6c7949ab208cd8bd65684c963227d4450c
Standardise listTokens in email & pdf

This simplifies the code to 'listtokens' across most of the pdf & email classes.

The case tokens are a bit of a hold out as ideally we would have
one function on CRM_Case_Form_Task which email & pdf would use
but we are still getting to that point - see
https://github.com/civicrm/civicrm-core/pull/21688
CRM/Activity/Form/Task.php
CRM/Activity/Form/Task/PDF.php
CRM/Contribute/Form/Task.php
CRM/Contribute/Form/Task/Email.php
CRM/Contribute/Form/Task/PDFLetter.php
CRM/Core/Form/Task.php
CRM/Member/Form/Task.php
CRM/Member/Form/Task/PDFLetter.php