19 declare(strict_types=1);
43 $title = $this->dic->
language()->txt(
"mm_mail");
44 $icon = $this->dic->ui()->factory()
47 ->standard(Standard::MAIL, $title);
50 $this->mainmenu->link($this->
if->identifier(
'mm_pd_mail'))
52 ->withAction(
'ilias.php?baseClass=ilMailGUI')
53 ->withParent(StandardTopItemsProvider::getInstance()->getCommunicationIdentification())
56 ->withNonAvailableReason(
57 $this->dic->ui()->factory()->legacy()->content($this->dic->language()->txt(
'component_not_active'))
59 ->withAvailableCallable(
60 static function () use (
$dic):
bool {
65 static function () use (
$dic):
bool {
66 return $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.
Class MailMainBarProvider.
static getMailObjectRefId()