ILIAS  trunk Revision v12.0_alpha-33-ge186251a14d
ILIAS\Help\GuidedTour\GlobalScreen\LayoutProvider Class Reference
+ Inheritance diagram for ILIAS\Help\GuidedTour\GlobalScreen\LayoutProvider:
+ Collaboration diagram for ILIAS\Help\GuidedTour\GlobalScreen\LayoutProvider:

Public Member Functions

 isInterestedInContexts ()
 
 getMetaBarModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
 __construct (Container $dic)
 @inheritDoc More...
 
 getContentModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getLogoModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getResponsiveLogoModification (CalledContexts $screen_context_stack)
 
 getMainBarModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getMetaBarModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getBreadCrumbsModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getFooterModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getPageBuilderDecorator (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getTitleModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getShortTitleModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getViewTitleModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getContentModification (CalledContexts $screen_context_stack)
 
 getLogoModification (CalledContexts $screen_context_stack)
 
 getResponsiveLogoModification (CalledContexts $screen_context_stack)
 
 getMainBarModification (CalledContexts $screen_context_stack)
 
 getMetaBarModification (CalledContexts $screen_context_stack)
 
 getBreadCrumbsModification (CalledContexts $screen_context_stack)
 
 getFooterModification (CalledContexts $screen_context_stack)
 
 getPageBuilderDecorator (CalledContexts $screen_context_stack)
 
 getTitleModification (CalledContexts $screen_context_stack)
 
 getShortTitleModification (CalledContexts $screen_context_stack)
 
 getViewTitleModification (CalledContexts $screen_context_stack)
 
 isInterestedInContexts ()
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
ContextCollection $context_collection
 
DataFactory $data
 
ModificationFactory $factory
 

Detailed Description

Definition at line 36 of file LayoutProvider.php.

Member Function Documentation

◆ getMetaBarModification()

ILIAS\Help\GuidedTour\GlobalScreen\LayoutProvider::getMetaBarModification ( CalledContexts  $screen_context_stack)

@inheritDoc

Reimplemented from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider.

Definition at line 72 of file LayoutProvider.php.

72 : ?MetaBarModification
73 {
74 $tm = $this->dic->help()->internal()->domain()->guidedTour()->tour();
75 if (!$tm->anyActive()) {
76 return null;
77 }
78 // add id mapping of all main menu items to gui
79 $this->globalScreen()->collector()->metaBar()->collectOnce();
80 foreach ($this->globalScreen()->collector()->metaBar()->getRawItems() as $item) {
81 if ($item instanceof isDecorateable) {
82 $name = $item->getProviderIdentification()->getInternalIdentifier();
83 $item->addComponentDecorator(static function (Component $c) use ($name): ?Component {
84 return $c->withAdditionalOnLoadCode(static function (string $id) use ($name): string {
85 return "il.guidedTour.addMapping('$name', '$id');";
86 });
87 });
88 }
89 }
90 return null;
91 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
$c
Definition: deliver.php:25

References $c, $id, and ILIAS\Repository\globalScreen().

+ Here is the call graph for this function:

◆ isInterestedInContexts()

ILIAS\Help\GuidedTour\GlobalScreen\LayoutProvider::isInterestedInContexts ( )
Returns
ContextCollection

Implements ILIAS\GlobalScreen\ScreenContext\ScreenContextAwareProvider.

Definition at line 40 of file LayoutProvider.php.

40 : ContextCollection
41 {
42 return $this->context_collection->main();
43 }

References ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection\main().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: