ILIAS  release_8 Revision v8.24
DashboardLayoutProvider.php
Go to the documentation of this file.
1<?php
2
26
28{
30
32 {
33 return $this->context_collection->desktop();
34 }
35
36 public function getMainBarModification(CalledContexts $screen_context_stack): ?MainBarModification
37 {
38 $this->data_collection = $screen_context_stack->current()->getAdditionalData();
39 if (!$this->data_collection->is(\ilDashboardGUI::DISENGAGE_MAINBAR, true)) {
40 return null;
41 }
42
43 return $this->globalScreen()->layout()->factory()->mainbar()
44 ->withModification(
45 function (?MainBar $mainbar): ?MainBar {
46 return $mainbar !== null ? $mainbar->withActive($mainbar::NONE_ACTIVE) : null;
47 }
48 )
49 ->withLowPriority();
50 }
51}
getMainBarModification(CalledContexts $screen_context_stack)
@inheritDoc
This describes the MainBar.
Definition: MainBar.php:34