ILIAS  release_7 Revision v7.30-3-g800a261c036
DashboardLayoutProvider.php
Go to the documentation of this file.
1<?php
24
31{
36
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}
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:17