ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
TaggingMainBarProvider.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Tagging\Provider
;
22
23
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
24
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
25
use
ILIAS\UI\Component\Symbol\Icon\Standard
;
26
32
class
TaggingMainBarProvider
extends
AbstractStaticMainMenuProvider
33
{
37
public
function
getStaticTopItems
(): array
38
{
39
return
[];
40
}
41
42
46
public
function
getStaticSubItems
(): array
47
{
48
$title = $this->dic->language()->txt(
"mm_tags"
);
49
$icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::TAGS, $title);
50
51
return
[
52
$this->mainmenu->complex($this->
if
->identifier(
'tags'
))
53
->
withAvailableCallable
(
function
() {
54
$tags_set = new \ilSetting(
"tags"
);
55
return
(
bool
) $tags_set->get(
"enable"
);
56
})
57
->
withTitle
($title)
58
->withSupportsAsynchronousLoading(
true
)
59
->withSymbol($icon)
60
->withContentWrapper(
function
() {
61
$tag_ui = new \ilTaggingSlateContentGUI();
62
63
return
$this->dic->ui()->factory()->legacy()->content($tag_ui->render());
64
})
65
->
withParent
(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
66
->withPosition(20),
67
];
68
}
69
}
StandardTopItemsProvider
Standard
if
if(!file_exists('../ilias.ini.php'))
Definition:
sessioncheck.php:23
ILIAS\Tagging\Provider
Definition:
TaggingMainBarProvider.php:21
ILIAS\Tagging\Provider\TaggingMainBarProvider
Class TaggingMainBarProvider.
Definition:
TaggingMainBarProvider.php:32
ILIAS\GlobalScreen\Scope\withAvailableCallable
withAvailableCallable(callable $is_available)
Definition:
VisibilityAvailabilityTrait.php:63
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:32
AbstractStaticMainMenuProvider
ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle
withTitle(string $title)
Definition:
hasTitleTrait.php:35
ILIAS\Tagging\Provider\TaggingMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
TaggingMainBarProvider.php:37
ILIAS\GlobalScreen\Scope\Footer\Factory\withParent
withParent(IdentificationInterface $identification)
Definition:
canHaveParentTrait.php:42
ILIAS\Tagging\Provider\TaggingMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
TaggingMainBarProvider.php:46
components
ILIAS
Tagging
GlobalScreen
classes
TaggingMainBarProvider.php
Generated on Sun Aug 31 2025 23:03:55 for ILIAS by
1.8.13 (using
Doxyfile
)