in the older version 3.x there was a Swift_Plugin_Decorator_Replacements that can be extended in order to do such a thing :
Code: Select all
class XXXXX_Swift_Plugin_Replacements extends Swift_Plugin_Decorator_Replacements {
function getReplacementsFor($address) {
$encoded = urlencode("{email}");
return array("{email}"=>$address,$encoded=>$address);
}
}Is there anything like this in 4.0.0 or how can i manage such replacements without making a huge array of replacements?
Thanks