20 return $this->
event->getObject()->guid === $recipient->guid;
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();
66 $result[$this->
event->getObject()->guid] = [
'email'];
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.
Notification Event Handler for 'user' 'user' 'unban' action.
Notification Event Handler handles preparation of a notification.
getNotificationBody(\ElggUser $recipient, string $method)
getLanguage(string $fallback=null)
Get user language or default to site language.
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()