ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
DerivedTaskMainBarProvider.php
Go to the documentation of this file.
1<?php
2
20
25
32{
36 public function getStaticTopItems(): array
37 {
38 return [];
39 }
40
41
45 public function getStaticSubItems(): array
46 {
48
49 $title = $this->dic->language()->txt("mm_task_derived_tasks");
50 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::TASK, $title);
51
52 // derived tasks list
53 $entries[] = $this->mainmenu->link($this->if->identifier('mm_derived_task_list'))
54 ->withTitle($title)
55 ->withPosition(40)
56 ->withSymbol($icon)
57 ->withAction($dic->ctrl()->getLinkTargetByClass([ilDerivedTasksGUI::class], ""))
58 ->withParent(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
59 ->withVisibilityCallable(
60 fn (): bool => true
61 );
62
63 return $entries;
64 }
65}
language()
Get interface to the i18n service.
Definition: Container.php:95
ctrl()
Get the interface to the control structure.
Definition: Container.php:63
This describes the specific behavior of an ILIAS standard icon.
Definition: Standard.php:27
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists('../ilias.ini.php'))