ILIAS  release_8 Revision v8.24
StandardNotificationGroupRenderer.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
21
26
32{
38 {
39 if (!$item instanceof StandardNotificationGroup) {
40 throw new \LogicException("item is not a StandardNotificationGroup");
41 }
42
43 $slate = $this->ui_factory->mainControls()->slate()->notification($item->getTitle(), []);
44 foreach ($item->getNotifications() as $standard_notification) {
45 $slate = $slate->withAdditionalEntry($standard_notification->getRenderer($this->ui_factory)
46 ->getNotificationComponentForItem($standard_notification));
47 }
48
49 return $slate;
50 }
51}
Class StandardNotificationGroup Groups a set of Notification.
Interface NotificationRenderer Every Notification should have a renderer, if you won't provide on in ...
Notifications Slates are Slates restricted to only containing Notification Items.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.