SilverStripe\CommentNotifications\Extensions\CommentNotifiable
Synopsis
class CommentNotifiable
extends DataExtension
{
- // members
- private static string $default_notification_subject = 'A new comment has been posted';
- private static string $default_notification_sender = 'noreply@{host}';
- private static string $default_notification_template = 'SilverStripe\\CommentNotifications\\CommentEmail';
- // methods
- public array|Traversable notificationRecipients()
- public string notificationSubject()
- public string notificationSender()
- public string notificationTemplate()
- public void updateCommentNotification()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $default_notification_sender
—
string
Default sender - $default_notification_subject
—
string
Default subject line if the owner doesn't override it - $default_notification_template
—
string
Default template to use for comment notifications
Methods
public
- notificationRecipients() — Return the list of members or emails to send comment notifications to
- notificationSender() — Get the sender email address to use for email notifications
- notificationSubject() — Gets the email subject line for comment notifications
- notificationTemplate() — Determine the template to use for this email
- updateCommentNotification() — Update the notification email