ILIAS  release_7 Revision v7.30-3-g800a261c036
StandardNotificationGroupRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(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}
An exception for terminatinating execution or to throw for unit testing.
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:14
Notifications Slates are Slates restricted to only containing Notification Items.
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.