8 $renderer = $DIC->ui()->renderer();
10 $image =
$factory->image()->responsive(
"./templates/default/images/HeaderIcon.svg",
"Thumbnail Example");
11 $card =
$factory->card(
"Title", $image)->withSections(
array(
$factory->legacy(
"Hello World, I'm a card")));
12 $popover =
$factory->popover()->standard($card)->withTitle(
'Card');
13 $button =
$factory->button()->standard(
'Show Card',
'#')
14 ->withOnClick($popover->getShowSignal());
16 return $renderer->render([$popover, $button]);
Create styles array
The data for the language used.