18 "notifications:mute:{$entity->type}:{$entity->subtype}",
19 "notifications:mute:{$entity->type}",
20 "notifications:mute:{$default_postfix}",
34 $commented_entity = $entity->getContainerEntity();
40 'name' =>
"mute[{$commented_entity->guid}]",
41 'value' => $commented_entity->hasMutedNotifications(
$recipient->guid),
49 'name' =>
"mute[{$entity->guid}]",
50 'value' => $entity->hasMutedNotifications(
$recipient->guid),
61 'name' =>
"mute[{$container->guid}]",
73 'name' =>
"mute[{$owner->guid}]",
85 'name' =>
"mute[{$actor->guid}]",
97 'name' =>
'entity_guid',
98 'value' => $entity->guid,
103 'name' =>
'recipient_guid',
109 'entity_guid' => $entity->guid,
114 'name' =>
'hmac_token',
115 'value' =>
$hmac->getToken(),
119 '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.