ILIAS  release_7 Revision v7.30-3-g800a261c036
AdministrativeNotificationRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
23use ILIAS\GlobalScreen\Client\Notifications as ClientNotifications;
24use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
27
33{
34 use Hasher;
35
40 {
44 $system_info = $this->ui_factory->mainControls()->systemInfo($item->getTitle(), $item->getSummary())->withDenotation($item->getDenotation());
45
46 if ($item->hasClosedCallable()) {
47 $url = rtrim(
48 ILIAS_HTTP_PATH,
49 "/"
50 ) . "/" . ClientNotifications::NOTIFY_ENDPOINT . "?" . $this->buildCloseQuery($item);
51 $system_info = $system_info->withDismissAction(new URI($url));
52 }
53
54 return $system_info;
55 }
56}
An exception for terminatinating execution or to throw for unit testing.
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:18
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:14
$url