18 use \ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
26 return $this->context_collection->
main();
34 if (!$this->showHelpTool()) {
37 $this->
globalScreen()->collector()->mainmenu()->collectOnce();
38 foreach ($this->
globalScreen()->collector()->mainmenu()->getRawItems() as $item) {
39 $p = $item->getProviderIdentification();
42 $tt_text = addslashes(str_replace(array(
"\n",
"\r"),
'', $tt_text));
46 $item->addSymbolDecorator(
static function (
Symbol $symbol) use ($tt_text) :
Symbol {
49 return "il.Tooltip.addToNearest('$id', 'button,a', { context:'', my:'bottom center', at:'top center', text:'$tt_text' });";
An exception for terminatinating execution or to throw for unit testing.
Class AbstractModificationProvider.
HTML export view layout provider, hides main and meta bar.
isInterestedInContexts()
@inheritDoc
getMainBarModification(CalledContexts $called_contexts)
No main bar in HTML exports.
static getMainMenuTooltip($a_item_id)
Get main menu tooltip.
Interface ModificationProvider.
Interface hasSymbol Methods for Entries with Symbols.
Interface to be extended by components that have the possibility to bind to Javascript.
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.