ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
DashboardLayoutProvider.php
Go to the documentation of this file.
1
<?
php
2
use
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
;
3
use
ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider
;
4
use
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
;
5
use
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
;
6
use
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
;
7
use
ILIAS\UI\Component\MainControls\MainBar
;
8
14
class
DashboardLayoutProvider
extends
AbstractModificationProvider
implements
ModificationProvider
15
{
19
protected
$data_collection
;
20
24
public
function
isInterestedInContexts
() :
ContextCollection
25
{
26
return
$this->context_collection->
desktop
();
27
}
28
29
public
function
getMainBarModification
(
CalledContexts
$screen_context_stack) : ?
MainBarModification
30
{
31
$this->data_collection = $screen_context_stack->
current
()->getAdditionalData();
32
if
(!$this->data_collection->is(\
ilDashboardGUI::DISENGAGE_MAINBAR
,
true
)) {
33
return
null
;
34
}
35
36
return
$this->
globalScreen
()->layout()->factory()->mainbar()
37
->withModification(
38
function
(
MainBar
$mainbar) : ?
MainBar
{
39
return
$mainbar->
withActive
($mainbar::NONE_ACTIVE);
40
}
41
)
42
->withLowPriority();
43
}
44
}
php
An exception for terminatinating execution or to throw for unit testing.
DashboardLayoutProvider
Class DashboardLayoutProvider.
Definition:
DashboardLayoutProvider.php:15
DashboardLayoutProvider\isInterestedInContexts
isInterestedInContexts()
@inheritDoc
Definition:
DashboardLayoutProvider.php:24
DashboardLayoutProvider\$data_collection
$data_collection
Definition:
DashboardLayoutProvider.php:19
DashboardLayoutProvider\getMainBarModification
getMainBarModification(CalledContexts $screen_context_stack)
@inheritDoc
Definition:
DashboardLayoutProvider.php:29
ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen
globalScreen()
Definition:
AbstractProvider.php:36
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
Class MainBar.
Definition:
MainBarModification.php:11
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
Class AbstractModificationProvider.
Definition:
AbstractModificationProvider.php:25
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
Class CalledContexts.
Definition:
CalledContexts.php:11
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current
current()
Definition:
CalledContexts.php:21
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
Definition:
ContextCollection.php:12
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection\desktop
desktop()
Definition:
ContextCollection.php:114
ilDashboardGUI\DISENGAGE_MAINBAR
const DISENGAGE_MAINBAR
Definition:
class.ilDashboardGUI.php:30
ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider
Interface ModificationProvider.
Definition:
ModificationProvider.php:23
ILIAS\UI\Component\MainControls\MainBar
This describes the MainBar.
Definition:
MainBar.php:16
ILIAS\UI\Component\MainControls\MainBar\withActive
withActive(string $active)
Services
Dashboard
GlobalScreen
classes
DashboardLayoutProvider.php
Generated on Fri Oct 3 2025 20:01:03 for ILIAS by
1.9.4 (using
Doxyfile
)