ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
StandardNotificationGroupRenderer.php
Go to the documentation of this file.
1 <?php
2 
3 declare(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 Factory.
Class ChatMainBarProvider .
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 StandardNotificationGroup Groups a set of Notification.
Interface NotificationRenderer Every Notification should have a renderer, if you won&#39;t provide on in ...