dev/core#2303 Extract function to load the messageContent for a template
authoreileen <emcnaughton@wikimedia.org>
Mon, 18 Jan 2021 01:37:13 +0000 (14:37 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 18 Jan 2021 20:11:50 +0000 (09:11 +1300)
commita4965e0c7127093c6b5cbf13d41661e3dbf2e081
tree6ef39fbff8bff3e0a9a4ae2ad61d687c9e36844c
parent459192b042d83d44400c22590e5017a3e7aa7a00
dev/core#2303 Extract function to load the messageContent for a template

This is a fairly straightforward extraction, seeking to break down the very-busy sendtemplate function
into the sub-functions within it. Essentially we load the template content, we swap out the tokens
and we send it.

Note that I have added a parameter to the output sent to alterMailContent
of 'workflow_name' which is more accurate - I will update the docs
CRM/Core/BAO/MessageTemplate.php
tests/phpunit/api/v3/ContributionTest.php