18 "notifications:mute:{$entity->type}:{$entity->subtype}",
19 "notifications:mute:{$entity->type}",
20 "notifications:mute:{$default_postfix}",
34 $commented_entity = $entity->getContainerEntity();
38 '#type' =>
'checkbox',
40 'name' =>
"mute[{$commented_entity->guid}]",
43 'checked' => $commented_entity->hasMutedNotifications(
$recipient->guid),
49 '#type' =>
'checkbox',
51 'name' =>
"mute[{$entity->guid}]",
54 'checked' => $entity->hasMutedNotifications(
$recipient->guid),
63 '#type' =>
'checkbox',
65 'name' =>
"mute[{$container->guid}]",
77 '#type' =>
'checkbox',
79 'name' =>
"mute[{$owner->guid}]",
91 '#type' =>
'checkbox',
93 'name' =>
"mute[{$actor->guid}]",
107 'name' =>
'entity_guid',
108 'value' => $entity->guid,
113 'name' =>
'recipient_guid',
119 'entity_guid' => $entity->guid,
124 'name' =>
'hmac_token',
125 'value' =>
$hmac->getToken(),
129 'value' =>
elgg_echo(
'notifications:mute:description'),
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
getOwnerEntity()
Gets the that owns this entity.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif($item instanceof\ElggRelationship) elseif(is_callable([$item, 'getType']))
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_language_key_exists(string $key, string $language= 'en')
Check if a given language key exists.
elgg_set_form_footer(string $footer= '')
Sets form footer and defers its rendering until the form view and extensions have been rendered...
if(empty($entity_guid)||empty($recipient)||empty($muted_settings)||empty($hmac_token)) $hmac
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
getContainerEntity()
Get the container entity for this object.
elgg_build_hmac($data)
Get an HMAC token builder/validator object.
getDisplayName()
Get the entity's display name.