19declare(strict_types=1);
31use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
43 return $this->context_collection->
main();
50 $gui = $this->dic->
help()->internal()->gui()->guidedTour()->guidedTourGUI();
51 $tm = $this->dic->help()->internal()->domain()->guidedTour()->tour();
53 $this->
globalScreen()->collector()->mainmenu()->collectOnce();
55 if (!$tm->anyActive()) {
60 foreach ($this->
globalScreen()->collector()->mainmenu()->getRawItems() as $item) {
61 if ($item instanceof isDecorateable) {
62 $name = $item->getProviderIdentification()->getInternalIdentifier();
64 return $c->withAdditionalOnLoadCode(
static function (
string $id) use ($name):
string {
65 return "il.guidedTour.addMapping('$name', '$id');";
75 $tm = $this->dic->help()->internal()->domain()->guidedTour()->tour();
76 if (!$tm->anyActive()) {
80 $this->
globalScreen()->collector()->metaBar()->collectOnce();
81 foreach ($this->
globalScreen()->collector()->metaBar()->getRawItems() as $item) {
83 $name = $item->getProviderIdentification()->getInternalIdentifier();
85 return $c->withAdditionalOnLoadCode(
static function (
string $id) use ($name):
string {
86 return "il.guidedTour.addMapping('$name', '$id');";
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Class AbstractModificationProvider.
getMainBarModification(CalledContexts $screen_context_stack)
@inheritDoc
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.