Definition at line 32 of file Modal.php.
◆ __construct()
| ILIAS\Badge\Modal::__construct |
( |
private readonly Container |
$container, |
|
|
|
$sign_file = [ilWACSignedPath::class, |
|
|
'signFile'] |
|
|
) |
| |
Definition at line 37 of file Modal.php.
41 $this->sign_file = Closure::fromCallable(
$sign_file);
readonly Closure $sign_file
◆ components()
- Returns
- list<Component>
Definition at line 47 of file Modal.php.
References ILIAS\Badge\ModalContent\badge(), and ILIAS\Badge\Modal\item().
51 $modal_content[] = $this->container->ui()->factory()->image()->responsive(
52 ($this->sign_file)($content->badge()->getImagePath()),
53 $content->badge()->getImage()
55 $modal_content[] = $this->container->ui()->factory()->divider()->horizontal();
56 $modal_content[] = $this->
item($content);
58 return $modal_content;
item(ModalContent $content)
◆ item()
◆ $sign_file
| readonly Closure ILIAS\Badge\Modal::$sign_file |
|
private |
The documentation for this class was generated from the following file: