getNotificationBody()
private method
Plugin can define a subtype specific body simply by providing a
translation for the string "notification:body:
:: '
Hi %s!
%s has created a new post called "%s" in the group %s.
It says:
"%s"
You can comment the post here:
%s
',
The arguments passed into the translation are:
1. Recipient's name
2. Name of the user who triggered the notification
3. Title of the content
4. Name of the content's container
5. The actual content (entity's 'description' field)
6. URL to the content
Argument swapping can be used to change the order of the parameters.
See http://php.net/manual/en/function.sprintf.php#example-5427
private getNotificationBody ( Elgg\Notifications\NotificationEvent $event, ElggUse\ElggUser $recipient ) : string |
$event |
Elgg\Notifications\NotificationEvent |
Notification event |
$recipient |
ElggUse\ElggUser |
Notification recipient |
return |
string |
Notification body in the recipient's language |