ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider Class Reference
+ Inheritance diagram for ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider:
+ Collaboration diagram for ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider:

Public Member Functions

 isInterestedInContexts ()
 
 getMainBarModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 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 ()
 

Data Fields

const FORCED_STARTUP_STEP = 'forced_startup_step'
 

Protected Member Functions

 isForcedStartupStep (CalledContexts $called_contexts)
 
- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
ContextCollection $context_collection
 
DataFactory $data
 
ModificationFactory $factory
 

Detailed Description

Definition at line 31 of file StartUpSequenceLayoutProvider.php.

Member Function Documentation

◆ getMainBarModification()

ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider::getMainBarModification ( CalledContexts  $screen_context_stack)

@inheritDoc

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

Definition at line 45 of file StartUpSequenceLayoutProvider.php.

45 : ?MainBarModification
46 {
47 if ($this->isForcedStartupStep($screen_context_stack)) {
48 $main_bar = $this->globalScreen()->layout()->factory()->mainbar();
49 $main_bar = $main_bar->withModification(function (?MainBar $current): ?MainBar {
50 return null;
51 });
52
53 return $main_bar->withPriority(\ILIAS\GlobalScreen\Scope\Layout\Factory\LayoutModification::PRIORITY_HIGH);
54 }
55
56 return null;
57 }
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

References ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen(), and ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider\isForcedStartupStep().

+ Here is the call graph for this function:

◆ getMetaBarModification()

ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider::getMetaBarModification ( CalledContexts  $screen_context_stack)

@inheritDoc

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

Definition at line 59 of file StartUpSequenceLayoutProvider.php.

59 : ?MetaBarModification
60 {
61 if ($this->isForcedStartupStep($screen_context_stack)) {
62 $meta_bar = $this->globalScreen()->layout()->factory()->metabar();
63 $meta_bar = $meta_bar->withModification(function (?MetaBar $current): ?MetaBar {
64 return null;
65 });
66
67 return $meta_bar->withPriority(\ILIAS\GlobalScreen\Scope\Layout\Factory\LayoutModification::PRIORITY_HIGH);
68 }
69
70 return null;
71 }

References ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen(), and ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider\isForcedStartupStep().

+ Here is the call graph for this function:

◆ isForcedStartupStep()

ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider::isForcedStartupStep ( CalledContexts  $called_contexts)
protected

Definition at line 35 of file StartUpSequenceLayoutProvider.php.

35 : bool
36 {
37 return $called_contexts->current()->getAdditionalData()->is(self::FORCED_STARTUP_STEP, true);
38 }

References ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current().

Referenced by ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider\getMainBarModification(), and ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider\getMetaBarModification().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isInterestedInContexts()

ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider::isInterestedInContexts ( )
Returns
ContextCollection

Implements ILIAS\GlobalScreen\ScreenContext\ScreenContextAwareProvider.

Definition at line 40 of file StartUpSequenceLayoutProvider.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:

Field Documentation

◆ FORCED_STARTUP_STEP

const ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider::FORCED_STARTUP_STEP = 'forced_startup_step'

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