summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-04-11 16:13:34 -0500
committerBjoern Schiessle <bjoern@schiessle.org>2017-04-12 17:16:26 +0200
commit050ce1d40bf344510338a401ce6b68f76ed3f5e5 (patch)
treef435c789b50c5198fa66a494f8a71c590e80f7a3 /lib/public
parentb90e91144bc8d378f6f52025f04383ae2e7c647b (diff)
downloadnextcloud-server-050ce1d40bf344510338a401ce6b68f76ed3f5e5.tar.gz
nextcloud-server-050ce1d40bf344510338a401ce6b68f76ed3f5e5.zip
Add addBodyButton to add a single button to email templates
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Mail/IEMailTemplate.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/Mail/IEMailTemplate.php b/lib/public/Mail/IEMailTemplate.php
index a1922e86151..7b85c154c36 100644
--- a/lib/public/Mail/IEMailTemplate.php
+++ b/lib/public/Mail/IEMailTemplate.php
@@ -93,6 +93,16 @@ interface IEMailTemplate {
public function addBodyButtonGroup($textLeft, $urlLeft, $textRight, $urlRight, $plainTextLeft = '', $plainTextRight = '');
/**
+ * Adds a button to the body of the email
+ *
+ * @param string $text Text of button
+ * @param string $url URL of button
+ *
+ * @since 12.0.0
+ */
+ public function addBodyButton($text, $url);
+
+ /**
* Adds a logo and a text to the footer. <br> in the text will be replaced by new lines in the plain text email
*
* @param string $text