51 return $this->context_collection->
repository();
58 $logo = $this->
globalScreen()->layout()->factory()->logo();
60 $logo = $logo->withModification(
function (?
Image $current) : ?
Image {
64 return $logo->withHighPriority();
72 $logo = $this->
globalScreen()->layout()->factory()->logo();
74 $logo = $logo->withModification(
function (?
Image $current) : ?
Image {
78 return $logo->withHighPriority();
88 $mainBar = $this->
globalScreen()->layout()->factory()->mainbar();
90 $mainBar = $mainBar->withModification(
function (?
MainBar $current) : ?
MainBar {
94 return $mainBar->withHighPriority();
104 $metaBar = $this->
globalScreen()->layout()->factory()->metabar();
106 $metaBar = $metaBar->withModification(
function (?
MetaBar $current) : ?
MetaBar {
110 return $metaBar->withHighPriority();
120 $footer = $this->
globalScreen()->layout()->factory()->footer();
122 $footer = $footer->withModification(
function (?
Footer $current) : ?
Footer {
126 return $footer->withHighPriority();
140 $additionalData = $called_contexts->
current()->getAdditionalData();
141 $isKioskModeEnabled = $additionalData->is(self::TEST_PLAYER_KIOSK_MODE_ENABLED,
true);
143 return $isKioskModeEnabled;
150 $title = $called_contexts->
current()->getAdditionalData()->get(self::TEST_PLAYER_SHORT_TITLE);
151 if ($title ===
null) {
154 return $this->
globalScreen()->layout()->factory()->short_title()
156 function (?
string $content) use ($title) : ?
string {
160 ->withHighPriority();
168 $title = $called_contexts->
current()->getAdditionalData()->get(self::TEST_PLAYER_TITLE);
169 if ($title ===
null) {
172 return $this->
globalScreen()->layout()->factory()->view_title()
174 function (?
string $content) use ($title) : ?
string {
178 ->withHighPriority();
An exception for terminatinating execution or to throw for unit testing.
Class ShortTitleModification.
Class ShortTitleModification.
Class AbstractModificationProvider.
getFooterModification(CalledContexts $called_contexts)
@inheritDoc
const TEST_PLAYER_KIOSK_MODE_ENABLED
getMetaBarModification(CalledContexts $called_contexts)
@inheritDoc
const TEST_PLAYER_SHORT_TITLE
getMainBarModification(CalledContexts $called_contexts)
@inheritDoc
isKioskModeEnabled(CalledContexts $called_contexts)
getResponsiveLogoModification(CalledContexts $called_contexts)
getViewTitleModification(CalledContexts $called_contexts)
@inheritDoc
getShortTitleModification(CalledContexts $called_contexts)
@inheritDoc
getLogoModification(CalledContexts $called_contexts)
@inheritDoc
Interface ModificationProvider.
This describes the Footer.
This describes the MainBar.
This describes the MetaBar.