Go to the source code of this file.
◆ closable()
Definition at line 2 of file closable.php.
References $_GET, $_SERVER, $DIC, Vendor\Package\$f, and exit.
4 $close_url =
$_SERVER[
'REQUEST_URI'] .
'&mail_closed=true';
7 if (
$_GET[
'mail_closed']) {
14 $f = $DIC->ui()->factory();
15 $renderer = $DIC->ui()->renderer();
17 $mail_icon =
$f->symbol()->icon()->standard(
"mail",
"mail");
18 $mail_title =
$f->link()->standard(
"Inbox",
"link_to_inbox");
19 $mail_notification_item =
$f->item()->notification($mail_title, $mail_icon)
20 ->withDescription(
"You have 23 unread mails in your inbox")
21 ->withProperties([
"Time" =>
"3 days ago"])
22 ->withCloseAction($close_url);
25 return $renderer->render($mail_notification_item);