ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
LightboxTextPage.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25use ILIAS\UI\Implementation\Component\ComponentHelper;
28use ILIAS\UI\Component\Modal\LightboxTextPage as ILightboxTextPage;
29
35class LightboxTextPage implements LightboxPage, ILightboxTextPage
36{
37 use ComponentHelper;
38
39 protected string $text;
40 protected string $title;
41
42 public function __construct(string $text, string $title)
43 {
44 $this->text = $text;
45 $this->title = $title;
46 }
47
51 public function getTitle(): string
52 {
53 return $this->title;
54 }
55
59 public function getComponent(): C\Legacy\Content
60 {
61 return new Content($this->text, new SignalGenerator());
62 }
63}
getTitle()
Get the title of this page, displayed as title in the lightbox modal.
getComponent()
Get the component representing the media item to be displayed in the modals content section,...
A lightbox Text page represents a page displaying a media element, such as text.