27use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
43 return $this->context_collection->
main();
54 $f =
$DIC->ui()->factory();
55 $ttm =
$DIC->help()->internal()->domain()->tooltips();
57 if (!$this->showHelpTool() && !$ttm->isTooltipIdentifierVisible()) {
62 $this->
globalScreen()->collector()->mainmenu()->collectOnce();
63 foreach ($this->
globalScreen()->collector()->mainmenu()->getRawItems() as $item) {
65 $p = $item->getProviderIdentification();
67 $tt_text = $ttm->getMainMenuTooltip($p->getInternalIdentifier());
68 $tt_text = addslashes(str_replace(array(
"\n",
"\r"),
'', $tt_text));
69 if ($tt_text !==
"") {
71 $item->withTopics(...
$DIC->ui()->factory()->helpTopics($tt_text));
83 $ttm =
$DIC->help()->internal()->domain()->tooltips();
85 if (!$this->showHelpTool() && !$ttm->isTooltipIdentifierVisible()) {
90 $this->
globalScreen()->collector()->metaBar()->collectOnce();
91 foreach ($this->
globalScreen()->collector()->metaBar()->getRawItems() as $item) {
93 $p = $item->getProviderIdentification();
95 $tt_text = $ttm->getMainMenuTooltip($p->getInternalIdentifier());
96 $tt_text = addslashes(str_replace(array(
"\n",
"\r"),
'', $tt_text));
97 if ($tt_text !==
"") {
99 $item->withTopics(...
$DIC->ui()->factory()->helpTopics($tt_text));
Class AbstractModificationProvider.
HTML export view layout provider, hides main and meta bar.
getMainBarModification(CalledContexts $screen_context_stack)
No main bar in HTML exports.
getMetaBarModification(CalledContexts $screen_context_stack)
@inheritDoc
Interface ModificationProvider.
A component is the most general form of an entity in the UI.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.