20 return $this->
getEventEntity()?->getContainerEntity()?->owner_guid === $recipient->guid;
27 return elgg_echo(
'generic_comment:notification:subject', [$this->
getEventEntity()?->getContainerEntity()?->getDisplayName()]);
35 return elgg_echo(
'generic_comment:notification:owner:summary', [$this->
getEventEntity()?->getContainerEntity()?->getDisplayName()]);
37 return elgg_echo(
'generic_comment:notification:user:summary', [$this->
getEventEntity()?->getContainerEntity()?->getDisplayName()]);
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.
getEventEntity()
Get the entity from the notification event.
Notification Event Handler handles preparation of a notification.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key