MessageTemplate - Allow 'workflow'/'valueName' as aliases. Consolidate alias bits.
authorTim Otten <totten@civicrm.org>
Tue, 28 Sep 2021 22:01:11 +0000 (15:01 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 28 Sep 2021 22:30:07 +0000 (15:30 -0700)
commitb7ade3e09d84952b3c26e7a3a7bafaeb7e8239e4
tree053047b9ddeda3930e90824d3589ab41c239e910
parent6c19459a7c9ab378a50ab624ba6f3bf2e6eab0e1
MessageTemplate - Allow 'workflow'/'valueName' as aliases. Consolidate alias bits.

The params given to `MessageTemplate::sendTemplate()` are evolving. But they are also
exposed via hook. Blerg.

This technically does two things:

1. It takes a couple of bits which are responsible for aliasing/transitioning specific
   params, and it moves them to a common `$sync()` function.

2. It deprecates `valueName` in favor of `workflow`, and it updates the hook test
   accordingly.
CRM/Core/BAO/MessageTemplate.php
Civi/WorkflowMessage/WorkflowMessage.php
tests/events/hook_civicrm_alterMailParams.evch.php