19 declare(strict_types=1);
39 $title = $this->dic->
language()->txt(
'mm_mail');
40 $icon = $this->dic->ui()->factory()
43 ->standard(Standard::MAIL, $title);
46 $this->mainmenu->link($this->
if->identifier(
'mm_pd_mail'))
48 ->withAction(
'ilias.php?baseClass=ilMailGUI')
49 ->withParent(StandardTopItemsProvider::getInstance()->getCommunicationIdentification())
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
59 static fn():
bool =>
$dic->
rbac()->system()->checkAccess(
user()
Get the current user.
if(!file_exists('../ilias.ini.php'))
Interface StaticMainMenuProvider.
withVisibilityCallable(callable $is_visible)
language()
Get interface to the i18n service.
rbac()
Get interface to get interfaces to all things rbac.
static getMailObjectRefId()