22 return $this->
if->identifier($id);
25 $nc = $this->dic->globalScreen()->collector()->notifications();
27 $new = $nc->getAmountOfNewNotifications();
28 $old = $nc->getAmountOfOldNotifications();
31 $mb->notificationCenter($id(
'notification_center'))
32 ->withAmountOfOldNotifications($new + $old)
33 ->withAmountOfNewNotifications($new)
34 ->withNotifications($nc->getNotifications())
35 ->withAvailableCallable(
static function () {
39 if ($DIC->ctrl()->getCmd() ==
"showLogout") {
44 ->withVisibilityCallable(
45 $access_checks->isUserLoggedIn(
function () :
bool {
46 return $this->dic->globalScreen()->collector()->notifications()->hasItems();
Interface IdentificationInterface.