ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
StandardNotificationGroupRenderer.php
Go to the documentation of this file.
2 
8 
15 {
16 
22  public function getNotificationComponentForItem(isItem $item)
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 }