ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
StandardNotificationGroupRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28
34{
40 {
41 if (!$item instanceof StandardNotificationGroup) {
42 throw new \LogicException("item is not a StandardNotificationGroup");
43 }
44
45 $slate = $this->ui_factory->mainControls()->slate()->notification($item->getTitle(), []);
46 foreach ($item->getNotifications() as $standard_notification) {
47 $slate = $slate->withAdditionalEntry($standard_notification->getRenderer($this->ui_factory)
48 ->getNotificationComponentForItem($standard_notification));
49 }
50
51 return $slate;
52 }
53}
Class StandardNotificationGroup Groups a set of Notification.
Interface NotificationRenderer Every Notification should have a renderer, if you won't provide on in ...
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Notifications Slates are Slates restricted to only containing Notification Items.