3declare(strict_types=1);
 
   39            return $this->
if->identifier(
$id);
 
   42        $nc = $this->dic->globalScreen()->collector()->notifications();
 
   44        $new = $nc->getAmountOfNewNotifications();
 
   45        $old = $nc->getAmountOfOldNotifications();
 
   48            $mb->notificationCenter(
$id(
'notification_center'))
 
   49                ->withAmountOfOldNotifications($new + $old)
 
   50                ->withAmountOfNewNotifications($new)
 
   51                ->withNotifications($nc->getNotifications())
 
   52                ->withAvailableCallable(
function (): 
bool {
 
   53                    return $this->dic->ctrl()->getCmd() !== 
"showLogout";
 
   55                ->withVisibilityCallable(
 
   58                            !$this->dic->user()->isAnonymous() &&
 
   59                            $this->dic->globalScreen()->collector()->notifications()->hasItems()
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
 
getMetaBarItems()
@inheritDoc
 
Interface IdentificationInterface.
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...