42 return parent::getNotificationBody($recipient, $method);
48 return elgg_echo(
'admin:notification:remove_admin:user:body', [
50 $site->getDisplayName(),
57 return elgg_echo(
'admin:notification:remove_admin:admin:body', [
59 $entity?->getDisplayName(),
60 $site->getDisplayName(),
89 $result = parent::getSubscriptions();
109 foreach ($admin_batch as
$admin) {
110 $result[$admin->guid] = [
'email'];
getNotificationBody(\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.
getEventEntity()
Get the entity from the notification event.
getNotificationSubject(\ElggUser $recipient, string $method)
{}
elgg_get_admins(array $options=[])
Elgg admin functions.
getSubscriptions()
Add the user to the subscribers when changing admin rights.
Notification Event Handler handles preparation of a notification.
Notification Event Handler for 'user' 'user' 'remove_admin' action.
recipientIsChangedUser(\ElggUser $recipient)
Tells if the recipient is the user being changed.
compare(string $x, string $comparison, $y=null, string $type=null, bool $case_sensitive=null)
Build value comparison clause.
getEventActor()
Get the acting user from the notification event.
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.
getNotificationURL(\ElggUser $recipient, string $method)
{}