ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.WorkspaceMainBarProvider.php
Go to the documentation of this file.
1<?php
2
20
23
30{
34 public function getStaticTopItems(): array
35 {
36 return [];
37 }
38
39
43 public function getStaticSubItems(): array
44 {
46
47 $title = $this->dic->language()->txt("mm_personal_and_shared_r");
48 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("fold", $title);
49 return [
50 $this->mainmenu->link($this->if->identifier('mm_pd_wsp'))
51 ->withTitle($title)
52 ->withAction("ilias.php?baseClass=ilDashboardGUI&cmd=jumpToWorkspace")
53 ->withParent(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
54 ->withPosition(60)
55 ->withSymbol($icon)
56 ->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content("{$this->dic->language()->txt('component_not_active')}"))
57 ->withAvailableCallable(
58 function () use ($dic) {
59 return !$dic->settings()->get("disable_personal_workspace");
60 }
61 ),
62 ];
63 }
64}
language()
Get interface to the i18n service.
Definition: Container.php:95
settings()
Get the interface to the settings.
Definition: Container.php:135
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists('../ilias.ini.php'))