ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
AdministrativeNotificationRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25use ILIAS\GlobalScreen\Client\Notifications as ClientNotifications;
26use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
28
34{
35 use Hasher;
36
41 {
45 $system_info = $this->ui_factory->mainControls()->systemInfo($item->getTitle(), $item->getSummary())->withDenotation($item->getDenotation());
46
47 if ($item->hasClosedCallable()) {
48 $url = rtrim(
49 ILIAS_HTTP_PATH,
50 "/"
51 ) . "/" . ClientNotifications::NOTIFY_ENDPOINT . "?" . $this->buildCloseQuery($item);
52 $system_info = $system_info->withDismissAction(new URI($url));
53 }
54
55 return $system_info;
56 }
57}
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
Interface NotificationRenderer Every Notification should have a renderer, if you won't provide on in ...
getNotificationComponentForItem(isItem $item)
Returns the UI Component for the past item.
A component is the most general form of an entity in the UI.
Definition: Component.php:28
$url
Definition: shib_logout.php:68