27use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
40 return $this->context_collection->
main();
49 if (!$this->showHelpTool()) {
52 $this->
globalScreen()->collector()->mainmenu()->collectOnce();
53 foreach ($this->
globalScreen()->collector()->mainmenu()->getRawItems() as $item) {
54 $p = $item->getProviderIdentification();
57 $tt_text = addslashes(str_replace(array(
"\n",
"\r"),
'', $tt_text));
60 $item->addSymbolDecorator(
static function (
Symbol $symbol) use ($tt_text):
Symbol {
62 return "il.Tooltip.addToNearest('$id', 'button,a', { context:'', my:'bottom center', at:'top center', text:'$tt_text' });";
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Class AbstractModificationProvider.
HTML export view layout provider, hides main and meta bar.
getMainBarModification(CalledContexts $screen_context_stack)
No main bar in HTML exports.
static getMainMenuTooltip(string $a_item_id)
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ModificationProvider.
Interface hasSymbol Methods for Entries with Symbols.
withAdditionalOnLoadCode(Closure $binder)
Add some onload-code to the component instead of replacing the existing one.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.