18 return $this->
event->getObject()->guid === $recipient->guid;
26 return parent::getNotificationSubject($recipient, $method);
37 return parent::getNotificationBody($recipient, $method);
42 return elgg_echo(
'user:notification:unban:body', [
43 $site->getDisplayName(),
61 $result = parent::getSubscriptions();
64 $result[$this->
event->getObject()->guid] = [
'email'];
recipientIsBannedUser(\ElggUser $recipient)
Tells if the recipient is the user being unbanned.
getLanguage($fallback=null)
Get user language or default to site language.
elgg_echo($message_key, array $args=[], $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)
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()