ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
LightboxCardPage.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
27class LightboxCardPage implements CardPage
28{
29 public function __construct(private readonly Card $card)
30 {
31 }
32
33 public function getTitle(): string
34 {
35 return $this->card->getTitle();
36 }
37
38 public function getComponent(): Component
39 {
40 return $this->card;
41 }
42}
getComponent()
Get the component representing the media item to be displayed in the modals content section,...
getTitle()
Get the title of this page, displayed as title in the lightbox modal.
A component is the most general form of an entity in the UI.
Definition: Component.php:28