ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
DashboardLayoutProvider.php
Go to the documentation of this file.
1
<?
php
18
use
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
;
19
use
ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider
;
20
use
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
;
21
use
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
;
22
use
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
;
23
use
ILIAS\UI\Component\MainControls\MainBar
;
24
30
class
DashboardLayoutProvider
extends
AbstractModificationProvider
implements
ModificationProvider
31
{
35
protected
$data_collection
;
36
40
public
function
isInterestedInContexts
() :
ContextCollection
41
{
42
return
$this->context_collection->
desktop
();
43
}
44
45
public
function
getMainBarModification
(
CalledContexts
$screen_context_stack) : ?
MainBarModification
46
{
47
$this->data_collection = $screen_context_stack->
current
()->getAdditionalData();
48
if
(!$this->data_collection->is(\
ilDashboardGUI::DISENGAGE_MAINBAR
,
true
)) {
49
return
null
;
50
}
51
52
return
$this->
globalScreen
()->layout()->factory()->mainbar()
53
->withModification(
54
function
(?
MainBar
$mainbar =
null
) : ?
MainBar
{
55
return
$mainbar !==
null
? $mainbar->
withActive
($mainbar::NONE_ACTIVE) :
null
;
56
}
57
)
58
->withLowPriority();
59
}
60
}
php
An exception for terminatinating execution or to throw for unit testing.
DashboardLayoutProvider
Class DashboardLayoutProvider.
Definition:
DashboardLayoutProvider.php:31
DashboardLayoutProvider\isInterestedInContexts
isInterestedInContexts()
@inheritDoc
Definition:
DashboardLayoutProvider.php:40
DashboardLayoutProvider\$data_collection
$data_collection
Definition:
DashboardLayoutProvider.php:35
DashboardLayoutProvider\getMainBarModification
getMainBarModification(CalledContexts $screen_context_stack)
@inheritDoc
Definition:
DashboardLayoutProvider.php:45
ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen
globalScreen()
Definition:
AbstractProvider.php:51
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
Class MainBar.
Definition:
MainBarModification.php:29
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
Class AbstractModificationProvider.
Definition:
AbstractModificationProvider.php:44
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
Class CalledContexts.
Definition:
CalledContexts.php:32
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current
current()
Definition:
CalledContexts.php:38
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
Definition:
ContextCollection.php:30
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection\desktop
desktop()
Definition:
ContextCollection.php:113
ilDashboardGUI\DISENGAGE_MAINBAR
const DISENGAGE_MAINBAR
Definition:
class.ilDashboardGUI.php:30
ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider
Interface ModificationProvider.
Definition:
ModificationProvider.php:41
ILIAS\UI\Component\MainControls\MainBar
This describes the MainBar.
Definition:
MainBar.php:17
ILIAS\UI\Component\MainControls\MainBar\withActive
withActive(string $active)
Services
Dashboard
GlobalScreen
classes
DashboardLayoutProvider.php
Generated on Sat Oct 4 2025 21:01:01 for ILIAS by
1.9.4 (using
Doxyfile
)