From ab376c50ed3b536693b938ecf4fc191e4368fb2f Mon Sep 17 00:00:00 2001 From: Paavo Date: Wed, 31 May 2023 16:15:06 +0200 Subject: [PATCH] Create EEL Helpers to provide MailObfuscator functions in Fusion --- Classes/Eel/MailObfuscator.php | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Classes/Eel/MailObfuscator.php diff --git a/Classes/Eel/MailObfuscator.php b/Classes/Eel/MailObfuscator.php new file mode 100644 index 0000000..c05e3eb --- /dev/null +++ b/Classes/Eel/MailObfuscator.php @@ -0,0 +1,43 @@ +convert($email); + } + + /** + * Convert Mailto to Href + * + * @param $email string + * @return string + */ + public function convertMailto2Href($email = false) { + return (new Mailto2HrefObfuscatingConverter())->convert($email); + } + + /** + * All methods are considered safe + * + * @param string $methodName + * @return boolean + */ + public function allowsCallOfMethod($methodName) { + return true; + } +}