6    $renderer = 
$DIC->ui()->renderer();
 
    7    $image = 
$factory->image()->responsive(
'src/UI/examples/Image/mountains.jpg', 
'Nice view on some mountains');
 
    8    $page = 
$factory->modal()->lightboxImagePage($image, 
'Mountains', 
'Image source: https://stocksnap.io, Creative Commons CC0 license');
 
    9    $image2 = 
$factory->image()->responsive(
'src/UI/examples/Image/sanfrancisco.jpg', 
'The golden gate bridge');
 
   10    $page2 = 
$factory->modal()->lightboxImagePage($image2, 
'San Francisco', 
'Image source: https://stocksnap.io, Creative Commons CC0 license');
 
   11    $image3 = 
$factory->image()->responsive(
'src/UI/examples/Image/ski.jpg', 
'Skiing');
 
   12    $page3 = 
$factory->modal()->lightboxImagePage($image3, 
'Ski Fun', 
'Image source: https://stocksnap.io, Creative Commons CC0 license');
 
   13    $modal = 
$factory->modal()->lightbox([$page, $page2, $page3]);
 
   14    $button = 
$factory->button()->standard(
'Show some fancy images', 
'')
 
   15        ->withOnClick($modal->getShowSignal());
 
   17    return $renderer->render([$button, $modal]);
 
An exception for terminatinating execution or to throw for unit testing.