22 return $this->
event->getObject()->guid === $recipient->guid;
41 $actor = $this->
event->getActor();
43 return parent::getNotificationBody($recipient, $method);
49 return elgg_echo(
'admin:notification:make_admin:user:body', [
51 $site->getDisplayName(),
55 $entity = $this->
event->getObject();
57 return elgg_echo(
'admin:notification:make_admin:admin:body', [
60 $site->getDisplayName(),
90 $result = parent::getSubscriptions();
93 $user = $this->
event->getObject();
113 foreach ($admin_batch as
$admin) {
114 $result[$admin->guid] = [
'email'];
getSubscriptions()
Add the user to the subscribers when changing admin rights.
getNotificationURL(\ElggUser $recipient, string $method)
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Database abstraction query builder.
recipientIsChangedUser(\ElggUser $recipient)
Tells if the recipient is the user being changed.
Notification Event Handler for 'user' 'user' 'make_admin' action.
elgg_get_admins(array $options=[])
Elgg admin functions.
Notification Event Handler handles preparation of a notification.
getLanguage(string $fallback=null)
Get user language or default to site language.
getNotificationBody(\ElggUser $recipient, string $method)
compare(string $x, string $comparison, $y=null, string $type=null, bool $case_sensitive=null)
Build value comparison clause.
getNotificationSubject(\ElggUser $recipient, string $method)
elgg_get_site_entity()
Get the current site entity.
static isConfigurableByUser()
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
_elgg_services()
Get the global service provider.
getDisplayName()
Get the entity's display name.