20 return $this->
event->getObject()->getContainerEntity()->owner_guid === $recipient->guid;
27 return elgg_echo(
'generic_comment:notification:subject', [$this->event->getObject()->getContainerEntity()->getDisplayName()], $recipient->
getLanguage());
35 return elgg_echo(
'generic_comment:notification:owner:summary', [$this->event->getObject()->getContainerEntity()->getDisplayName()], $recipient->
getLanguage());
37 return elgg_echo(
'generic_comment:notification:user:summary', [$this->event->getObject()->getContainerEntity()->getDisplayName()], $recipient->
getLanguage());
45 $entity = $this->
event->getObject();
elgg_get_excerpt(string $text, int $num_chars=250)
Returns an excerpt.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Notification Event Handler handles preparation of a notification.
getLanguage(string $fallback=null)
Get user language or default to site language.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key