ILIAS  release_8 Revision v8.24
with_signal.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
7function with_signal()
8{
9 global $DIC;
10 $factory = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
12
13 $image = $factory->image()->responsive("src/UI/examples/Image/mountains.jpg", "Image source: https://stocksnap.io, Creative Commons CC0 license");
14 $page = $factory->modal()->lightboxImagePage($image, 'Mountains');
15 $modal = $factory->modal()->lightbox($page);
16
17 $pagination = $factory->viewControl()->pagination()
18 ->withTotalEntries(98)
19 ->withPageSize(10)
20 ->withResetSignals()
21 ->withOnSelect($modal->getShowSignal());
22
23 return $renderer->render([$pagination, $modal]);
24}
global $DIC
Definition: feed.php:28
$factory
Definition: metadata.php:75