ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
DashboardLayoutProvider.php
Go to the documentation of this file.
1<?php
8
15{
20
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}
An exception for terminatinating execution or to throw for unit testing.
Class DashboardLayoutProvider.
getMainBarModification(CalledContexts $screen_context_stack)
@inheritDoc
This describes the MainBar.
Definition: MainBar.php:16