ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
StandardNotificationGroupRenderer.php
Go to the documentation of this file.
2
4use ILIAS\GlobalScreen\Scope\Notification\Factory\hasActions;
8
15{
16
23 {
24 if (!$item instanceof StandardNotificationGroup) {
25 throw new \LogicException("item is not a StandardNotificationGroup");
26 }
27
28 $slate = $this->ui_factory->mainControls()->slate()->notification($item->getTitle(), []);
29 foreach ($item->getNotifications() as $standard_notification) {
30 $slate = $slate->withAdditionalEntry($standard_notification->getRenderer($this->ui_factory)
31 ->getNotificationComponentForItem($standard_notification));
32 }
33
34 return $slate;
35 }
36}
An exception for terminatinating execution or to throw for unit testing.
Notifications Slates are Slates restricted to only containing Notification Items.