ILIAS  release_7 Revision v7.30-3-g800a261c036
DerivedTaskMainBarProvider.php
Go to the documentation of this file.
2
6
13{
14
18 public function getStaticTopItems() : array
19 {
20 return [];
21 }
22
23
27 public function getStaticSubItems() : array
28 {
30
31 $title = $this->dic->language()->txt("mm_task_derived_tasks");
32 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::TASK, $title)->withIsOutlined(true);
33
34 // derived tasks list
35 $entries[] = $this->mainmenu->link($this->if->identifier('mm_derived_task_list'))
36 ->withTitle($title)
37 ->withPosition(40)
38 ->withSymbol($icon)
39 ->withAction($dic->ctrl()->getLinkTargetByClass(["ilDerivedTasksGUI"], ""))
40 ->withParent(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
41 ->withVisibilityCallable(
42 function () use ($dic) {
43 return true;
44 }
45 );
46
47 return $entries;
48 }
49}
An exception for terminatinating execution or to throw for unit testing.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
This describes the specific behavior of an ILIAS standard icon.
Definition: Standard.php:11