3{
6 $renderer =
$DIC->ui()->renderer();
8
9
10 $generic_icon1 =
$f->symbol()->icon()->standard(
"cal",
"generic");
11 $generic_title1 =
$f->link()->standard(
"Generic 1",
"link_to_generic_repo");
12 $generic_item1 =
$f->item()->notification($generic_title1, $generic_icon1)
13 ->withDescription("Some description.")
14 ->withProperties(["Property 1" => "Content 1", "Property 2" => "Content 2"])
15 ->withActions(
16 $f->dropdown()->standard([
17 $f->button()->shy(
"Possible Action of this Item",
"https://www.ilias.de"),
18 $f->button()->shy(
"Other Possible Action of this Item",
"https://www.github.com")
19 ])
20 )
21 ->withCloseAction($close_url);
22
23 $generic_title2 =
$f->link()->standard(
"Generic 2",
"just_opens_the_list_of_aggregates");
24 $generic_item2 =
$f->item()->notification($generic_title2, $generic_icon1)
25 ->withDescription("Some description describing the aggregates attached.")
26 ->withProperties(["Property 1" => "Content 1", "Property 2" => "Content 2"])
27 ->withAggregateNotifications([$generic_item1, $generic_item1]);
28
29
30 return $renderer->render($generic_item2);
31}