21 return $this->
if->identifier($id);
24 $nc = $this->dic->globalScreen()->collector()->notifications();
26 $new = $nc->getAmountOfNewNotifications();
27 $old = $nc->getAmountOfOldNotifications();
30 $mb->notificationCenter($id(
'notification_center'))
31 ->withAmountOfOldNotifications($new + $old)
32 ->withAmountOfNewNotifications($new)
33 ->withNotifications($nc->getNotifications())
34 ->withAvailableCallable(
function () :
bool {
37 if ($this->dic->ctrl()->getCmd() ==
"showLogout") {
43 ->withVisibilityCallable(
46 !$this->dic->user()->isAnonymous() &&
47 $this->dic->globalScreen()->collector()->notifications()->hasItems()
Interface IdentificationInterface.
Class NotificationCenterProvider.