28 return parent::getNotificationSubject($recipient, $method);
39 return parent::getNotificationBody($recipient, $method);
44 return elgg_echo(
'user:notification:unban:body', [
45 $site->getDisplayName(),
63 $result = parent::getSubscriptions();
recipientIsBannedUser(\ElggUser $recipient)
Tells if the recipient is the user being unbanned.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
getEventEntity()
Get the entity from the notification event.
Notification Event Handler for 'user' 'user' 'unban' action.
Notification Event Handler handles preparation of a notification.
getNotificationBody(\ElggUser $recipient, string $method)
{}
getNotificationSubject(\ElggUser $recipient, string $method)
{}
elgg_get_site_entity()
Get the current site entity.
_elgg_services()
Get the global service provider.
getSubscriptions()
Add the user to the subscribers when (un)banning the account.
static isConfigurableByUser()
{}