19 declare(strict_types=1);
40 $close_url =
$_SERVER[
'REQUEST_URI'] .
'&mail_closed=true';
49 $f = $DIC->ui()->factory();
52 $mail_icon =
$f->symbol()->icon()->standard(
"mail",
"mail");
53 $mail_title =
$f->link()->standard(
"Inbox",
"#");
54 $mail_notification_item =
$f->item()->notification($mail_title, $mail_icon)
55 ->withDescription(
"You have 23 unread mails in your inbox")
56 ->withProperties([
"Time" =>
"3 days ago"])
57 ->withCloseAction($close_url);
60 return $renderer->render($mail_notification_item);
closable()
description: > Example for rendering a closable notification item.
exit
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...