19 declare(strict_types=1);
36 return $this->
if->identifier(
$id);
39 $nc = $this->dic->globalScreen()->collector()->notifications();
41 $new = $nc->getAmountOfNewNotifications();
42 $old = $nc->getAmountOfOldNotifications();
45 $mb->notificationCenter(
$id(
'notification_center'))
46 ->withAmountOfOldNotifications($new + $old)
47 ->withAmountOfNewNotifications($new)
48 ->withNotifications($nc->getNotifications())
49 ->withAvailableCallable(
function ():
bool {
50 return $this->dic->ctrl()->getCmd() !==
'showLogout';
52 ->withVisibilityCallable(
55 !$this->dic->user()->isAnonymous() &&
56 $this->dic->globalScreen()->collector()->notifications()->hasItems()
Interface IdentificationInterface.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins