19declare(strict_types=1);
39 $title = $this->dic->
language()->txt(
'mm_mail');
40 $icon = $this->dic->ui()->factory()
46 $this->mainmenu->link($this->
if->identifier(
'mm_pd_mail'))
48 ->withAction(
'ilias.php?baseClass=ilMailGUI')
52 ->withNonAvailableReason(
53 $this->dic->ui()->factory()->legacy()->content($this->dic->language()->txt(
'component_not_active'))
55 ->withAvailableCallable(
56 static fn():
bool => !
$dic->
user()->isAnonymous() &&
$dic->
user()->getId() !== 0
58 ->withVisibilityCallable(
59 static fn():
bool =>
$dic->
rbac()->system()->checkAccess(
user()
Get the current user.
language()
Get interface to the i18n service.
rbac()
Get interface to get interfaces to all things rbac.
Interface StaticMainMenuProvider.
Class StandardTopItemsProvider.
Class for global mail information (e.g.
static getMailObjectRefId()
This describes the specific behavior of an ILIAS standard icon.
if(!file_exists('../ilias.ini.php'))