19declare(strict_types=1);
31use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
42 return $this->context_collection->
main();
49 $gui = $this->dic->
help()->internal()->gui()->guidedTour()->guidedTourGUI();
50 $tm = $this->dic->help()->internal()->domain()->guidedTour()->tour();
52 $this->
globalScreen()->collector()->mainmenu()->collectOnce();
54 if (!$tm->anyActive()) {
59 foreach ($this->
globalScreen()->collector()->mainmenu()->getRawItems() as $item) {
60 if ($item instanceof isDecorateable) {
61 $name = $item->getProviderIdentification()->getInternalIdentifier();
63 return $c->withAdditionalOnLoadCode(
static function (
string $id) use ($name):
string {
64 return "il.guidedTour.addMapping('$name', '$id');";
74 $tm = $this->dic->help()->internal()->domain()->guidedTour()->tour();
75 if (!$tm->anyActive()) {
79 $this->
globalScreen()->collector()->metaBar()->collectOnce();
80 foreach ($this->
globalScreen()->collector()->metaBar()->getRawItems() as $item) {
82 $name = $item->getProviderIdentification()->getInternalIdentifier();
84 return $c->withAdditionalOnLoadCode(
static function (
string $id) use ($name):
string {
85 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.